Closed Bug 1803834 Opened 1 year ago Closed 1 year ago

Implement optional behavior to pause non-audible autoplay videos when they're invisible

Categories

(Core :: Audio/Video: Playback, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Attachments

(3 files)

Our current attribute mAutoplaying seems be equal to the can autoplay flag defined in the spec, so rename it to the spec name.

https://html.spec.whatwg.org/multipage/media.html#can-autoplay-flag

See Also: → 1786040

Does Chrome implement this?

Flags: needinfo?(alwu)

Based on the discussion thread, I think so.

Flags: needinfo?(alwu)
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6f1440600742
part1 : rename `mAutoplaying` to 'mCanAutoplayFlag'. r=media-playback-reviewers,padenot
https://hg.mozilla.org/integration/autoland/rev/caebdf99b7c2
part2 : pause/resume non-audible autoplay video when its visibility changes. r=media-playback-reviewers,padenot
https://hg.mozilla.org/integration/autoland/rev/06be562f9c6c
part3 : enable wpt 'autoplay-hidden.optional.html'. r=media-playback-reviewers,padenot
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/37357 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1804308
Regressions: 1814314
Blocks: 1822417
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: