Temasys / SkylinkJS

SkylinkJS Javascript WebRTC SDK
http://skylink.io/web
Other
275 stars 57 forks source link

Remove user-agent check for FF for deviceId for video sources to enable multiple camera streams #333

Closed ishannaithani closed 6 years ago

ishannaithani commented 6 years ago

Purpose of this PR

Firefox supports deviceId and exact parameter for getUserMedia constraints. Hence this PR removes the useragent for FF check that prevents it from setting the constraints when sendStream is called with a different deviceId.

This enables switching of camera's in the peer's machine if he as rear facing camera or webcams attached (In Firefox).

Please see JIRA ticket for more info.

geekavi commented 6 years ago

looks good