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

时间:2016-07-27 06:23:33

标签: ios swift tizen samsung-smart-tv

有没有人使用适用于iOS的Samsung / Tizen SDK。 https://github.com/SamsungDForum/SmartViewSDKCastVideo

我一直在使用它,它完美无缺。从昨天起,我试图连接到我的电视。它会生成此错误。我从他们的git门户下载了几个示例代码,每个代码都有相同的问题。有人可以帮助。感谢。

  

可选(错误域= HTTP请求代码= 500“内部服务器错误”   UserInfo = {NSLocalizedDescription =内部服务器错误})   可选(“内部服务器错误”)

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()
            }
        })
    }

1 个答案:

答案 0 :(得分:1)

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

  

抱歉,

     

iOS lib已更新2.3.1

     

plz,下载新版本

     

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

Samsung Development SDK下载页面发布说明

  

来自固件更新的'15电视中出现意外错误(版本1460.xx)   iOS和JavaScript API无法找到并连接到电视。该   修复此问题的图书馆已于2016/08/01更新。请   使用新的库下载和更新库。我们为此道歉   给您的服务带来的任何不便。