Bug 250199

Summary: The stream obtained through navigator.mediaDevices.getDisplayMedia has black edges on both sides of the video. And cannot set width and height
Product: WebKit Reporter: mawencan <1044926436>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Major CC: youennf
Priority: P2    
Version: Safari 16   
Hardware: Mac (Apple Silicon)   
OS: macOS 13   
Attachments:
Description Flags
https://meet.google.com none

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 ***