WICG / audio-focus

Other
21 stars 11 forks source link

User interface of "content" kind #12

Open xxyzzzq opened 7 years ago

xxyzzzq commented 7 years ago

From @alastor0325 on January 6, 2016 10:3

https://mediasession.spec.whatwg.org/#media-session-kinds

Displays lock-screen and notification area user interfaces when playback begins.

Hi, all, I would like to discuss the behavior of the "user interfaces". Here are some questions, thanks :)

Copied from original issue: WICG/mediasession#120

xxyzzzq commented 7 years ago

From @mounirlamouri on January 7, 2016 20:50

Yes, the intent is that the interface would allow the user to control the stream. Regarding when it disappears, I'm not sure how much we can make this a requirement. FWIW, Chrome is removing it if the user presses pause in the page but we just landed a change that keeps the notification in that case.

xxyzzzq commented 7 years ago

From @foolip on January 11, 2016 13:41

What I think would make sense is if the UI remains until the session does back to the idle state. Pausing (without starting another app or in-browser media session) and a transient interruption would thus leave the UI in place.

Some (most?) native apps leave their notification even after they have lost audio focus entirely, but I don't think that's a good default behavior, at least.