SamsungDForum / SmartViewSDKHelloWorld

HelloWorld
18 stars 25 forks source link

JS SDK: Uncaught TypeError: Cannot read property '1' of null at RTCPeerConnection.n.onicecandidate (Search.js:56) #9

Open jedashford opened 4 years ago

jedashford commented 4 years ago

We're attempting a simple search and discovery of a samsung TV device in our office. I've downloaded the sdk (SmartViewSDK-JS-2.3.4-Updated) and we've implemented some simple code to test (see code below) and we keep getting this console error:

Uncaught TypeError: Cannot read property '1' of null at RTCPeerConnection.n.onicecandidate (Search.js:56)

indicating an issue with this line of search.js which we don't have access to through the sdk: var myIP = /([0-9]{1,3}(.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/.exec(ice.candidate.candidate)[1]; Our code from code example from documentation: <!DOCTYPE html>

This seems to indicate we are either missing something or failing to include some parameter somewhere? As you can see this is a very simple implementation, what are we missing?