Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internet Explorer hangs while using Temasys plugin #277

Open
vinayakkedge opened this issue Jun 21, 2017 · 3 comments
Open

Internet Explorer hangs while using Temasys plugin #277

vinayakkedge opened this issue Jun 21, 2017 · 3 comments

Comments

@vinayakkedge
Copy link

I am using adapter.js of Temasys alongwith signalling server of node js.

Everything works just fine with Chrome and Firefox.

But same application video calling getting hanged in IE.

Am I missing something? Any help in this regard will be most appreciable.

Thanks and regards,
Vinayak

@johache
Copy link
Contributor

johache commented Jun 22, 2017

Hi,
I'm going to need a little bit more information than that.

@vinayakkedge
Copy link
Author

vinayakkedge commented Jun 22, 2017

Webrtc_working_example.zip
I have attached my files in zip.

  1. Which signaling/nodejs ? Yes

  2. Did you follow the integration manual ? https://confluence.temasys.com.sg/display/TWPP/How+to+integrate+the+Temasys+WebRTC+Plugin+into+your+website Yes

  3. It hangs on
    function onIceCandidateHandler(evt) {
    console.log("onIceCandidateHandler");
    if (!evt || !evt.candidate) return;
    wsc.send(JSON.stringify({"candidate": evt.candidate }));
    };

Above function called infinitly and my application does not receive ICE candidate

This app works correctly with Mozilla and Chrome

Following STUN server I am using
https://stackoverflow.com/questions/22233980/implementing-our-own-stun-turn-server-for-webrtc-application
https://github.com/coturn/coturn

Sometimes get following exception:

Uncaught (in promise) DOMException: Failed to set remote answer sdp: Called in wrong state: STATE_INPROGRESS

Uncaught (in promise) DOMException: Failed to set remote answer sdp: Called in wrong state: STATE_RECEIVEDOFFER

@johache
Copy link
Contributor

johache commented Jul 10, 2017

You test samples does not work, but
you can't stringify evt.candidate. It is a plugin object, which is very complex NPAPI/ActiveX object.
You need to make a temporary object with the attributes your are interested in, and stringify it.

Ex:

var c = {
candidate: evt.candidate.candidate,
sdpMLineIndex: evt.candidate.sdpMLineIndex,
sdpMid: evt.candidate.sdpMid
};
JSON.stringify(c);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants