[Webkit-unassigned] [Bug 266749] New: when I use video element to play WebRtc stream and change the video size, It can cause abnormal flickering in video rendering
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 20 20:13:27 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=266749
Bug ID: 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
Version: Safari 17
Hardware: iPhone / iPad
OS: iOS 17
Status: NEW
Severity: Blocker
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: xiehongtao1224 at gmail.com
CC: youennf at gmail.com
Created attachment 469156
--> https://bugs.webkit.org/attachment.cgi?id=469156&action=review
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>
);
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231221/a0caf0ac/attachment.htm>
More information about the webkit-unassigned
mailing list