Pausing iframe media when not visible

Aperta
#1,468 2 commenti 7 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
html, javascript

Direzione di ricerca

Review the explainer and specification linked in the issue to understand the 'media-playback-while-not-visible' permission policy. Examine the existing web-platform-tests (WPT) for this feature at the provided test links to see current test coverage. The task likely involves adding or updating tests in the WPT repository to ensure interoperability across browsers. Start by running the existing tests locally to understand the baseline, then identify gaps in test coverage for edge cases or browser-specific behaviors.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

focus-area-proposal
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

https://github.com/web-platform-dx/web-features/issues/4292

Test Links
Additional Signals

Gecko Standards position: Positive (https://github.com/mozilla/standards-positions/issues/1082)
WebKit: No signal (https://github.com/WebKit/standards-positions/issues/409)

Standards discussion at https://github.com/whatwg/html/issues/10208

Lingua principale
JavaScript
Stelle
591
Fork
39
Merge medio
3h 8m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di web-platform-tests/interop

Tutte le issue di web-platform-tests/interop

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.