-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix/device id firefox #848
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a minor comment to remove a line in .gitignore.
Thanks a lot for the contribution!
.gitignore
Outdated
@@ -17,3 +17,4 @@ erizo_controller/erizoAgent/erizo-*.log | |||
spine/erizofc.js | |||
extras/basic_example/public/assets/ | |||
rtp_media_config.js | |||
.idea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this line as we don't use .idea files in the main repository.
@jcague done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
Tested in Chrome > v.57 & Firefox > v.44
Hi guys,
I had some issues with the deviceId constraint in Erizo.Stream(config). When I want to select a specific deviceId, I had two different behaviour in Chrome and Firefox.
Chrome:
The above code make the following request: (chrome://webrtc-internals)
{deviceId: {ideal: ["78e1b1db6a8c0ddd9b2e4d7758cef70cce62c7f1d0987e6f079360fac2cef41e"]}}
The same code in Firefox doesn't seem to work. The deviceId is not specified in the GUM.
I fix the bug using a standard structure to specify the sourceId either in Chrome or Firefox.
{audio: true, video: {mandatory: {sourceId: "123456789"}}}
The above code make the following request: (chrome://webrtc-internals)
{deviceId: {exact: ["78e1b1db6a8c0ddd9b2e4d7758cef70cce62c7f1d0987e6f079360fac2cef41e"]}}
It works in Firefox as well.
[] It needs and includes Unit Tests
[] It includes documentation for these changes in
/doc
.