WICG / audio-focus

Other
21 stars 11 forks source link

Distinguish pause from transient-solo #18

Open xxyzzzq opened 7 years ago

xxyzzzq commented 7 years ago

From @annevk on July 1, 2015 16:50

A site would want to disable its own set of controls when "transient-solo" happens, but if the user did a hardware pause, the site would simply want to change the pause into a play button or some such.

Copied from original issue: WICG/mediasession#89

xxyzzzq commented 7 years ago

From @foolip on July 1, 2015 16:56

I think that exposing the state (idle/active/interrupted) and events for transitions between those states ought to suffice to distinguish these two cases, because if a hardware button was used the session would still be active, with the media element(s) simply being paused.

xxyzzzq commented 7 years ago

From @jernoble on January 14, 2016 19:0

@foolip Agreed.