diff --git a/index.bs b/index.bs index 469078d..01542c3 100644 --- a/index.bs +++ b/index.bs @@ -13,6 +13,7 @@ Former Editor: Becca Hughes, w3cid 103353, Google Inc., beccahughes@google.com Former Editor: Zhiqiang Zhang, Google Inc., zqzhang@google.com Former Editor: Rich Tibbett, Opera, richt@opera.com +Markup Shorthands: markdown yes Group: mediawg Logo: https://resources.whatwg.org/logo-mediasession.svg Abstract: This specification enables web developers to show customized media @@ -90,10 +91,10 @@ urlPrefix: https://html.spec.whatwg.org/multipage/dom.html; spec: dom Media is used extensively today, and the Web is one of the primary means of consuming media content. Many platforms can display media metadata, such as -title, artist, album and album art on various UI elements such as notification, -media control center, device lockscreen and wearable devices. This specification +title, artist, album and album art on various UI elements such as notifications, +media control center, device lockscreen, and wearable devices. This specification aims to enable web pages to specify the media metadata to be displayed in -platform UI, and respond to media controls which may come from platform UI or +platform UI, and respond to media controls that may come from platform UI or media keys, thereby improving the user experience.

Conformance

@@ -217,8 +218,8 @@ conforming IDL fragments, as described in the Web IDL specification. [[!WEBIDL]]

Playback State

- In order to make play and - pause actions work properly, + In order to make {{MediaSessionAction/play}} and + {{MediaSessionAction/pause}} actions work properly, the user agent SHOULD be able to determine if a browsing context of the active media session is playing media or not, which is called the guessed playback state. The RECOMMENDED way for determining @@ -237,17 +238,16 @@ conforming IDL fragments, as described in the Web IDL specification. [[!WEBIDL]] state is combined with the guessed playback state to compute the actual playback state, which is a finalized state and will be used for - play and - pause actions. + {{MediaSessionAction/play}} and + {{MediaSessionAction/pause}} actions.

The actual playback state is computed in the following way: