Skip to content

Pausing iframe media when not visible #1468

Open

Description

@dandclark

Description

The media-playback-while-not-visible permission policy allows sites to automatically pause audible media playback of iframes when they're hidden (display: none, visibility: hidden, or width/height equal to 0). While hidden, attempts made by the embedded iframe to render audible media will be blocked. When the frame is shown again the prohibitions are lifted. This allows developers to build more user-friendly experiences and improve performance by letting the browser handle the playback of content that is not visible to users.

<iframe src="https://foo.media.com" allow="media-playback-while-not-visible 'none'"></iframe>

Explainer: https://github.com/WICG/iframe-media-pausing/blob/main/explainer.md

Specification

https://wicg.github.io/iframe-media-pausing/

web-feature

web-platform-dx/web-features#4292

Test Links

Additional Signals

Gecko Standards position: Positive (mozilla/standards-positions#1082)
WebKit: No signal (WebKit/standards-positions#409)

Standards discussion at whatwg/html#10208

Activity

  1. github-actions commented on Sep 23, 2026

    @github-actions

    This comment was automatically generated based on the information you provided. Please don't edit it.

    No web features (from the web-features project) were found in your proposal. If your proposal doesn't correspond to a web feature, that is fine.
    Otherwise, please update your initial comment to include web-features: <feature-id>.
    To find feature IDs, use the web-features explorer.

  2. sumathin-lang commented on Oct 7, 2026

    @sumathin-lang

    The ability to mute iframes when they are in the background is an extremely valuable feature for Teams. Without it, the user experience can be very poor: audio may continue playing from a background tab with no clear indication of which tab is responsible. In some cases, users may have no obvious way to stop the audio other than restarting Teams.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions