NEW 215161
When the page enters the background, the mediastream video cannot be played in the pip window
https://bugs.webkit.org/show_bug.cgi?id=215161
Summary When the page enters the background, the mediastream video cannot be played i...
709922234
Reported 2020-08-05 02:42:57 PDT
Reproduce: 1. open https://mantou132.github.io/javascript-learn/stream.html 2. click pip button 3. Focus on other apps and let Safari enter the background expect: The video plays smoothly in the pip window actual: video paused ``` const ctx = canvas.getContext('2d'); const tick = () => { ctx.canvas.width = ctx.canvas.width; ctx.fillStyle = 'white'; ctx.fillRect(0, 0, ctx.canvas.width, ctx.canvas.height); ctx.fillStyle = 'black'; ctx.font = '50px serif'; ctx.fillText(Math.floor(performance.now()), 0, 50); requestAnimationFrame(tick); } tick(); const stream = canvas.captureStream(); video.srcObject = stream; video.play(); btn.onclick = () => video.requestPictureInPicture(); ```
Attachments
Radar WebKit Bug Importer
Comment 1 2020-08-06 12:04:56 PDT
Note You need to log in before you can comment on or make changes to this bug.