Bug 266749

Summary: when I use video element to play WebRtc stream and change the video size, It can cause abnormal flickering in video rendering
Product: WebKit Reporter: xht <xiehongtao1224>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Blocker CC: webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: iPhone / iPad   
OS: iOS 17   
Attachments:
Description Flags
Abnormal recording none

xht
Reported 2023-12-20 20:13:27 PST
Created attachment 469156 [details] Abnormal recording // react ts code function Test() { const [size, setSize] = useState(false); const videoRef = useRef<HTMLVideoElement>(null); const getCamera = async () => { const stream = await navigator.mediaDevices.getUserMedia({ video: { facingMode: 'environment', }, }); videoRef.current.srcObject = stream; }; const style = { width: size ? 300 : 150, height: size ? 300 : 150, }; return ( <div> <video ref={videoRef} autoPlay playsInline style={style} /> <div> <button onClick={getCamera}>getCamera</button> <button onClick={() => { setSize(!size); }} > changeSize </button> </div> </div> ); }
Attachments
Abnormal recording (716.35 KB, video/mp4)
2023-12-20 20:13 PST, xht
no flags
Radar WebKit Bug Importer
Comment 1 2023-12-27 20:14:12 PST
youenn fablet
Comment 2 2024-02-20 07:39:55 PST
This should be fixed in shipping iOS 17.2. Please reopen otherwise.
Note You need to log in before you can comment on or make changes to this bug.