Bug 188606 - getUserMedia() fails to honor "deviceId" specified in video constraints.
Summary: getUserMedia() fails to honor "deviceId" specified in video constraints.
Status: RESOLVED DUPLICATE of bug 187756
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 11
Hardware: Mac macOS 10.13
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-15 10:08 PDT by Manjesh Malavalli
Modified: 2018-08-15 14:30 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manjesh Malavalli 2018-08-15 10:08:15 PDT
In Safari 11, getUserMedia() always captures video from the first device in the list of devices returned by enumerateDevices(), no matter what deviceId is specified in the video constraints.

Steps to reproduce:

1. Make sure you have two video input sources available.
2. Run https://jsfiddle.net/b9wyx1sc/28/ in Safari 11.

Expected behavior:

- The two video elements should render video from the two video input sources.

Actual behavior:

- Both video elements render video from the first device listed by enumerateDevices().
Comment 1 youenn fablet 2018-08-15 14:30:37 PDT
Hi Manjesh, thanks for the bug report.
I believe this is the same issue as bug 187756, let's follow-up there.
Comment 2 youenn fablet 2018-08-15 14:30:41 PDT

*** This bug has been marked as a duplicate of bug 187756 ***