Temasys / AdapterJS

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

getUserMedia simulcast issue #242

Open tjohnson-z148 opened 7 years ago

tjohnson-z148 commented 7 years ago

We did today a test of a "simulcast" feature. Simulcast meaning that we request "getUserMedia" twice on the same tab, once at a high resolution, the other at a low resolution, and send out both streams.

We see your compatibility matrix and issues like #89 , but this is an issue inside of a single tab and not cross-tab. Therefore, you should have access to the stream data already, and be able to re-encode it for a second stream without OS permissions. That is, if coded exactly that way.

Quote from Antonios: "I changed the screen share to getMedia to camera instead of screen... It works with Chrome/Firefox/Safari on MacOS and Chrome/Firefox on Win7 but getMedia failed with IE10 on win7, as somewhat expected, with the error: Failed to create video track."

johache commented 7 years ago

At the moment, the plugin is not sharing capturers between streams. That is for stability reasons (mainly because we want to have a 1-1 link between track and sources) See our compatibility matrix that does state that a camera can only be used by one track at a time : https://confluence.temasys.com.sg/display/TWPP