Bug 257885

Summary: getUserMedia creates a stream to the video tag, which will appear cropped for a while and then resume
Product: WebKit Reporter: shuming <ltsg0317>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Unspecified   
OS: Unspecified   

Description shuming 2023-06-09 02:15:39 PDT
Steps to reproduce the problem:

async function test() {
  const stream = await navigator.mediaDevices.getUserMedia({
    video: true,
    audio: false,
  });
  const videoTrack = stream.getVideoTracks()[0];
  localVideo.srcObject = new MediaStream([videoTrack]);
}



Safari version: 17.0
OS Version: Sonoma 14.0

alse can test in url: https://jsfiddle.net/ltsg0317/q1krd4gu/7/

result:
1、https://asset.cloudinary.com/dhx2zug13/f24d6854df95a1a62b3953cfa10cfe1c
2、https://asset.cloudinary.com/dhx2zug13/ea4878a3cee48bdf5fc01a8e57f9b073
Comment 1 Radar WebKit Bug Importer 2023-06-16 02:16:16 PDT
<rdar://problem/110889516>
Comment 2 youenn fablet 2023-06-20 00:00:11 PDT
This is probably a dupe of https://bugs.webkit.org/show_bug.cgi?id=256695.

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