| Summary: | [macOS] Canvas.getContext('2d').drawImage on a camera video stream does not work when tab is backgrounded | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | youenn fablet <youennf> |
| Component: | Media | Assignee: | youenn fablet <youennf> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ansarman, dino, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
youenn fablet
2022-07-13 01:07:50 PDT
This bug was externally reported. The canvas stops streaming when the tab becomes inactive. In the jsfiddle, the video element is not playing any audio and might be paused when page goes to background. One way to prevent it is to add a silent audio track. For instance https://jsfiddle.net/0h5edpLw/. This raises the question of what happens to media elements which get paused as not visible+silent while they are repeatedly drawn to canvas. In a sense, these media elements are visible so we should probably not pause them. Pull request: https://github.com/WebKit/WebKit/pull/2655 Committed 252738@main (de9dae2e5319): <https://commits.webkit.org/252738@main> Reviewed commits have been landed. Closing PR #2655 and removing active labels. |