有人用过 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
关于三星开发 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/