Intent to Prototype: Pause media playback on not-rendered iframes

214 views
Skip to first unread message

Gabriel Brito

unread,
Jun 27, 2024, 3:03:56 PMJun 27
to blink-dev, Steve Becker, Sunggook Chue, dalecurtis, Hongchan Choi
Contact emails
Explainer
Specification
None
Summary
Adds a "media-playback-while-not-rendered" permission policy to allow embedder websites to pause media playback of embedded iframes which aren't rendered - i.e. have their "display" property set to "none". Since the only way for a website to halt media playback in a cross-origin iframe is to destroy the frame, this feature should help said websites to improve performance by removing the need to destroy and re-create the media-playing frame everytime playback needs to be paused/resumed.
 
Blink component
Motivation
Web applications that host embedded media content via iframes may wish to respond to application input by temporarily hiding the media content. These applications may not want to unload the entire iframe when it's not rendered since it could generate user-perceptible performance and experience issues when showing the media content again. At the same time, the user could have a negative experience if the media continues to play and emit audio when not rendered. This proposal aims to provide web applications with the ability to control embedded media content in such a way that guarantees their users have a good experience when the iframe's render status is changed.
 
Initial public proposal
None
TAG review
None
TAG review status
Pending
Risks
 
Interoperability and Compatibility
None


Gecko: No signal

WebKit: No signal
Web developers: The web community seems to be interested in this feature (Proposal: pause iframe media when not rendered · Issue #10208 · whatwg/html (github.com)). Even though we may need to iterate on the user-facing API, the feature is ready for implementation, because we anticipate that the majority of the feature implementation will be the same even if there are changes to be made there. 
Other signals:
WebView application risks
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
 
Debuggability
None
 
Is this feature fully tested by web-platform-tests?
No
Flag name on chrome://flags
None
Finch feature name
None
Non-finch justification
None
Requires code in //chrome?
False
Estimated milestones
M128
Link to entry on the Chrome Platform Status
This intent message was generated by Chrome Platform Status.



Reply all
Reply to author
Forward
0 new messages