有没有人在iOS上使用三星/Tizen。https://github.com/SamsungDForum/SmartViewSDKCastVideo
我一直在用它,效果很好。从昨天我试着连接我的电视。它会产生这个错误。我从他们的git门户下载了几个示例代码,每个代码都有相同的问题。有人能帮忙吗。谢谢。
可选(错误Domain=HTTP请求Code=500“内部服务器错误”UserInfo={NSLocalizedDescription=Internal服务器错误})可选(“内部服务器错误”)
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()
}
})
}发布于 2016-08-01 06:04:05
问题终于解决了。我收到了三星开发团队的回复。
抱歉的, 更新了iOS库2.3.1 请下载新版本 https://www.samsungdforum.com/AddLibrary/SmartViewDownload
三星开发SDK下载页面上的发布说明
15台电视固件更新(ver1460.xx)出现意外错误,iOS和JavaScript API找不到并连接到电视机。修复该问题的库已从2016/08/01更新。请下载并使用新的更新库。我们对给您的服务造成的不便表示歉意。
https://stackoverflow.com/questions/38605205
复制相似问题