From OpenHome

(Difference between revisions)
Jump to: navigation, search
(Created page with "= Transport PlayAs Options = The Transport service’s <tt>PlayAs</tt> action takes arguments for <tt>mode</tt> (source or group of related so...")
(Add track={json})
 
Line 6: Line 6:
* <tt>id=[track_id]</tt> - Halt playback of any current track and switch to the track with the specified id. Returns a <tt>800</tt> fault code if <tt>[track_id]</tt> is not valid.
* <tt>id=[track_id]</tt> - Halt playback of any current track and switch to the track with the specified id. Returns a <tt>800</tt> fault code if <tt>[track_id]</tt> is not valid.
* <tt>index=[playlist_index]</tt> - Halt playback of the current track and switch to the track with the specified index. Returns a <tt>802</tt> fault code if the index is beyond the end of the playlist.
* <tt>index=[playlist_index]</tt> - Halt playback of the current track and switch to the track with the specified index. Returns a <tt>802</tt> fault code if the index is beyond the end of the playlist.
 +
* <tt>track={"uri":"track_uri","metadata":"didl_lite"}</tt> - load the specified track at the end of the current Playlist and play it next.
=== Radio ===
=== Radio ===
The <tt>"radio"</tt> mode supports the following command:
The <tt>"radio"</tt> mode supports the following command:
* <tt>id=[preset_id]</tt> – Start playing the specified preset.  Returns a <tt>800</tt> fault code if <tt>[preset_id]</tt> does not match a current preset
* <tt>id=[preset_id]</tt> – Start playing the specified preset.  Returns a <tt>800</tt> fault code if <tt>[preset_id]</tt> does not match a current preset
 +
 +
 +
The <tt>"Radio-Single"</tt> mode supports the following command:
 +
* <tt>track={"uri":"track_uri","metadata":"didl_lite"}</tt> - load the specified track.

Latest revision as of 10:40, 20 May 2024

Transport PlayAs Options

The Transport service’s PlayAs action takes arguments for mode (source or group of related sources) and a mode-specific command. Some standard modes and commands are listed below; other manufacturer-specific options are possible.

Playlist

The "playlist" mode supports the following commands:

  • id=[track_id] - Halt playback of any current track and switch to the track with the specified id. Returns a 800 fault code if [track_id] is not valid.
  • index=[playlist_index] - Halt playback of the current track and switch to the track with the specified index. Returns a 802 fault code if the index is beyond the end of the playlist.
  • track={"uri":"track_uri","metadata":"didl_lite"} - load the specified track at the end of the current Playlist and play it next.

Radio

The "radio" mode supports the following command:

  • id=[preset_id] – Start playing the specified preset. Returns a 800 fault code if [preset_id] does not match a current preset


The "Radio-Single" mode supports the following command:

  • track={"uri":"track_uri","metadata":"didl_lite"} - load the specified track.