Bug 257885 - getUserMedia creates a stream to the video tag, which will appear cropped for a while and then resume
Summary: getUserMedia creates a stream to the video tag, which will appear cropped for...
Status: RESOLVED DUPLICATE of bug 256695
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 17
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-06-09 02:15 PDT by shuming
Modified: 2023-06-20 00:00 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***