TPU SOUND PROJECT

Index:

  1. Introduction
  2. HW requirements
  3. SW requirements
  4. UPnP services used
  5. The UPnP control point
  6. The UPnP media renderer (smart speaker)
  7. The user interface

The UPnP control point:

CP Socket Message Recognizable Tags (continue...)

TagServiceActionsEffects
PAUSEAVTPause, GetTransportInfoIf a stream is now playing, set current state, perform the pause action and then update back the current state. Last of all, retrieve current paused song metadata for send back a response to the GUI
PLAYAVTPlay, GetTransportInfoDepending on the player state:
  • if player is paused, last played is set with the same URI as before;
  • if play is "auto-raised", like for example after the end of a song in a queue list, URI is not updated with the one passed as argument on the incoming message;
  • if play is "istantly-raised", or in other words with an user command, URI is updated with the parsed URI.
The final play action is performed if and only if AVTransport V1 is supported by the media renderer; in this case, player status is updated immediately after the requested action
SEEKAVTSeekThe new position after the seek event is parsed from the received message ("pos" argument) and its format is fixed (mm:ss)
STOPAVTStop, GetTransportInfoLike in the PAUSE case, only if there's an active playing stream the current player state info is updated both before and after the stop action
FFORWARDAVTPlayUpdate last played URI before launch a new play action; if there's no other songs to play on the queue, leave the current played URI empty
REWINDAVTPlayRoll back of a single position the song queue (if it's possible), then update last played and now playing URIs and play the previous song
QUEUE--Insert the URI parsed as an incoming message argument to the song queue of the control point (like in a "push" method)
MUTE_UNMUTERCGetMute, SetMuteToggle player audio on/off
VOLUME_ADJRCGetVolume, SetVolumeChange current renderer volume level with the value passed as an argument in the incoming message