ios - SmartView SDK Samsung/Tizen - 内部服务器错误 500

标签 ios swift tizen samsung-smart-tv

有人用过 Samsung/Tizen SDK for iOS 吗? https://github.com/SamsungDForum/SmartViewSDKCastVideo

我一直在使用它,效果非常好。从昨天开始,当我尝试连接到我的电视时。它会生成此错误。我从他们的 git 门户网站下载了几个示例代码,每个示例代码都有相同的问题。有人可以帮忙吗?谢谢。

Optional(Error Domain=HTTP Request Code=500 "Internal Server Error" UserInfo={NSLocalizedDescription=Internal Server Error}) Optional("Internal Server Error")

func launchApplicationTv(service:Service, completionHandler: (isTVConnected:Bool) -> () )
    {
        self.serviceSearch.stop()
        self.serviceSearch.stopUsingBLE()
        self.stoplisteningForNotifications()

        let appID = kSAMSUNG_APPID
        let channelID = kSAMSUNG_CHANNELID

        print("input: createApplication:(appId):\(appID) channelURI: \(channelID)  args: %@")

        self.samsung_app = service.createApplication(kSAMSUNG_APPID, channelURI: kSAMSUNG_CHANNELID, args: nil)

        self.samsung_app.delegate = self;
        self.samsung_app.connectionTimeout = 100.0


        let dict:NSDictionary = ["name":kiOS_DEVICE]

        self.samsung_app.start({ (success,error) -> Void in
            if success
            {
                self.samsung_app.connect((dict as! [String : String]), completionHandler: ({ (ChannelClient,error) -> Void in
                    print("Connected")
                    self.connectedService = service;
                    completionHandler(isTVConnected: true)
                }))
            }
            else
            {
                completionHandler(isTVConnected: false)

                print("Couldn't Connect")
                dispatch_async(dispatch_get_main_queue(),
                {
                    self.showError()
                })

                self.terminateConnection()
            }
        })
    }

最佳答案

问题终于解决了。我收到了三星开发团队的回复。

Sorry,

iOS lib is updated 2.3.1

plz, download new version

https://www.samsungdforum.com/AddLibrary/SmartViewDownload

关于三星开发 SDK 下载页面的发行说明

Unexpected error occured in '15 TVs from firmware update (ver 1460.xx) that iOS and JavaScript API does NOT find and connect to the TVs. The libraries to fix the issue have updated from 2016/08/01. Please download and update the library with the new one. We apologize for any inconvenience caused to your service.

关于ios - SmartView SDK Samsung/Tizen - 内部服务器错误 500,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38605205/

相关文章:

iOS 交互式 UILocalNotifications

iphone - 将 HTTP 流插入 AVMutableComposition

ios - 不滚动的 UICollectionView

tizen - 哪些编程语言可用于在 tizen OS 中开发 native 应用程序?

ios - CMStepCounter 不提供步数

c# - 当我从 UITableViewSource 单击 RowSelected 时如何打开 UIViewController

swift - 如何检查一个sknode是否接触了另一个sknode

ios - 在 MFMailComposeViewController 中将“发送和取消”按钮设置为白色背景上的白色以外的其他内容

javascript - 使用 Angular 7 的 Tizen 可穿戴 Web 应用程序

javascript - Websocket发送消息延迟