Skip to content

Commit

Permalink
Refine language of local vs. remote playback state
Browse files Browse the repository at this point in the history
  • Loading branch information
markafoltz committed Dec 4, 2017
1 parent 22725db commit a9f2fa6
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1256,20 +1256,35 @@ <h4>
device</a> is established.
</p>
<p>
In particular, as soon as the <a data-link-for=
"RemotePlayback">state</a> of a <a>RemotePlayback</a> object has
changed to <a data-link-for="RemotePlaybackState">connected</a>,
the <a>user agent</a> MUST send all the media commands issued on
the <a>HTMLMediaElement</a> object with which the
<a>RemotePlayback</a> object is associated to the <a>remote
playback device</a> in order to change the <a>remote playback
state</a> vs the <a>local playback state</a>.
</p>
<p>
Similarly, the <a>user agent</a> MUST reflect all updates of the
<a>remote playback state</a> received from the <a>remote playback
device</a> on the <a>media element state</a>.
When the <a data-link-for="RemotePlayback">state</a> of
a <a>RemotePlayback</a> object
is <a data-link-for="RemotePlaybackState">connected</a>, the
following conditions relate the <a>local playback
state</a>, <a>media element state</a>, and <a>remote playback
state</a>:
</p>
<dl>
<dd>
The <a>user agent</a> MUST send all media commands issued on the
associated <a>HTMLMediaElement</a> object to the <a>remote playback
device</a> in order to change its <a>remote playback state</a>;
</dd>
<dd>
The <a>remote playback device</a> SHOULD implement all media
commands sent by the <a>user agent</a>;
</dd>
<dd>
The <a>remote playback device</a> SHOULD send updates of
the <a>remote playback state</a> to the <a>user agent</a> that
affect any attribute exposed through the <a>media element
state</a>;
<dd>
The <a>user agent</a> MUST process all updates of the
<a>remote playback state</a> received from the <a>remote playback
device</a> and update the <a>local playback state</a> of the
media element.
</dd>
</dl>
<p>
If sending any command fails, the <a>user agent</a> MAY
<a>disconnect from a remote playback device</a>.
Expand Down

0 comments on commit a9f2fa6

Please sign in to comment.