Has anyone used Samsung/Tizen SDK for iOS. https://github.com/SamsungDForum/SmartViewSDKCastVideo
I have been using it and it worked perfect. Since yesterday when I try to connect to my TV. It generates this error. I have downloaded several sample codes from their git portal and each has the same issue. Can someone please assist. Thanks.
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()
}
})
}