Open Argus444 opened 4 years ago
@Argus444 AFAIK the IceCandidates are triggered when you do connection.setLocalDescription(sdp)
, where SDP is created either through connection.createOffer({})
or connection.createAnswer({})
depending on your flow.
Take a look at the demo projects.
Which platform(s) does your issue occur on? Android
What type of device? Physical device.
Version Numbers: CLI: tns version 6.7.8 Cross-platform modules: 6.5.8 Runtime(s): "tns-android": { "version": "6.5.0" } "tns-ios": { "version": "6.5.1" } Plugin(s): { "nativescript": { "id": "org.nativescript.WebRTCTestApp", "tns-android": { "version": "6.5.0" }, "tns-ios": { "version": "6.5.1" } }, "description": "NativeScript Application", "license": "SEE LICENSE IN ", "repository": "", "dependencies": { "@nativescript/theme": "~2.3.0", "nativescript-socketio": "^3.3.1", "nativescript-webrtc-plugin": "^2.0.0-alpha.22", "tns-core-modules": "~6.5.0" }, "devDependencies": { "nativescript-dev-webpack": "~1.5.0" }, "gitHead": "20a65d338ae8f8911087ab6615b89363f864b07b", "readme": "NativeScript Application" }
The problem: var connection = new new TNSRTCPeerConnection(iceConfig); connection.onIceCandidate(callback=>{console.log(callback)} nothing happens
when I: console.log(connection.onIceCandidate); It returns me the whole function. But no call backs returns, infact nothing happens inside the callback