Temasys / AdapterJS

AdapterJS Javascript Polyfill and Tools for WebRTC - Skylink WebRTC
http://skylink.io/web
Other
432 stars 100 forks source link

End of candidates in Microsoft Edge #189

Closed roma-lukashik closed 8 years ago

roma-lukashik commented 8 years ago

Hi,

How to wait until the end of candidates is fired in Microsoft Edge? Usually "onicecandidate" event returns NULL entry for the latest "event.candidate" object. But in Microsoft Edge I receive an empty object after each ice candidate and cannot check "!event.candidate".

Thanks in advance.

oooookk7 commented 8 years ago

Hi @roma-lukashik,

You cannot send the EndOfCandidate to Chrome/FF/Plugin, as it is not a valid candidate. However, on Edge, you do need to add one.

So you will have to adapt to the type of peer on the remote side and drop/create candidates accordingly