You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
navigator.mediaDevices.getDisplayMedia ignores the deviceId parameter on macOS when attempting to capture a virtual display created with flutter_virtual_display. Despite desktopCapturer.getSources correctly identifying the virtual display and the application correctly passing the deviceId, the capture defaults to the primary display. Native logs indicate start desktop capture: sourceId: (null).
To Reproduce
Set up a Flutter project with flutter_webrtc and flutter_virtual_display.
Use flutter_virtual_display.createDisplay to create a virtual display.
Use desktopCapturer.getSources to retrieve a list of available screen sources.
Verify the virtual display's id is present in the list.
Call navigator.mediaDevices.getDisplayMedia with the deviceId set to the virtual display's id.
Observe that the captured stream is from the primary display, not the virtual display.
Check the native logs and observe start desktop capture: sourceId: (null).
Expected behavior
navigator.mediaDevices.getDisplayMedia should use the provided deviceId to capture the specified virtual display.
Describe the bug
navigator.mediaDevices.getDisplayMedia
ignores thedeviceId
parameter on macOS when attempting to capture a virtual display created withflutter_virtual_display
. DespitedesktopCapturer.getSources
correctly identifying the virtual display and the application correctly passing thedeviceId
, the capture defaults to the primary display. Native logs indicatestart desktop capture: sourceId: (null)
.To Reproduce
flutter_webrtc
andflutter_virtual_display
.flutter_virtual_display.createDisplay
to create a virtual display.desktopCapturer.getSources
to retrieve a list of available screen sources.id
is present in the list.navigator.mediaDevices.getDisplayMedia
with thedeviceId
set to the virtual display'sid
.start desktop capture: sourceId: (null)
.Expected behavior
navigator.mediaDevices.getDisplayMedia
should use the provideddeviceId
to capture the specified virtual display.Platform information
Plugin version: 0.12.12+hotfix.1
macOS: 13.7.4
The text was updated successfully, but these errors were encountered: