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

Fix/device id firefox #848

Merged
merged 6 commits into from
Apr 18, 2017
Merged

Conversation

enricop89
Copy link
Contributor

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:

{audio: true, video: {deviceId: "123456789"}} or 
{audio: true, video: {sourceId: "123456789"}}

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.

Copy link
Contributor

@jcague jcague left a 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
Copy link
Contributor

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.

@enricop89
Copy link
Contributor Author

@jcague done!

Copy link
Contributor

@jcague jcague left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jcague jcague merged commit 43d55d8 into lynckia:master Apr 18, 2017
Arri98 pushed a commit to Arri98/licode that referenced this pull request Apr 6, 2021
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

Successfully merging this pull request may close these issues.

2 participants