SamsungDForum / SmartViewSDKCastVideo

Smart View SDK Reference app to cast video
34 stars 16 forks source link

HTTP Request Code=500 "Internal Server Error" #1

Closed taimur closed 8 years ago

taimur commented 8 years ago

I have been using it and it worked perfect for 10 days. Since 26th July when I try to connect to my TV. It generates this error. I have downloaded other sample codes from SamsungDForum 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()
            }
        })
    }
monster-mj commented 8 years ago

Sorry,

plz, download new version

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