Bug 250199 - The stream obtained through navigator.mediaDevices.getDisplayMedia has black edges on both sides of the video. And cannot set width and height
Summary: The stream obtained through navigator.mediaDevices.getDisplayMedia has black ...
Status: RESOLVED DUPLICATE of bug 250200
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 16
Hardware: Mac (Apple Silicon) macOS 13
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-06 02:30 PST by mawencan
Modified: 2023-01-07 11:20 PST (History)
1 user (show)

See Also:


Attachments
https://meet.google.com (679.57 KB, image/png)
2023-01-06 02:30 PST, mawencan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description mawencan 2023-01-06 02:30:35 PST
Created attachment 464370 [details]
https://meet.google.com

mac m1 air 
```
const shareOptions: DisplayMediaStreamOptions = {
  video: true,
  audio: {
    echoCancellation: true,
    noiseSuppression: true,
    sampleRate: 44100,
  },
};
stream = await navigator.mediaDevices.getDisplayMedia(shareOptions);
video.srcObject = stream;
video.play();
```
There are black edges on both sides of the video. I hope the video content is covered without black edges
--------------------
Or by https://meet.google.com To reproduce
Comment 1 Alexey Proskuryakov 2023-01-07 11:20:04 PST

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