Mediaplayer status object
- Publishers
- mm-control
- Subscribers
- Any app
Overview
Players are used to play back tracks from a tracksession. Players are created and referenced by name so that the HMI can connect to players created or started before the HMI is initialized.
For every player created, mm-control creates a PPS object called /pps/services/mm-control/playername/status to publish the status associated with that player.
Attributes published to /pps/services/mm-control/playername/status
When this command is called: |
These attributes are published to the status object: |
player_create |
|
player_set_trksession |
- trksession::trksession_name
- media_source::attribute name in /pps/mm/status
- trkid:n:index_of_trk
- fid:n: (fid of the track inside the database; stored inside the trksession as userdata)
- state::STOPPED
|
player_set_current |
- trkid:n:index_of_trk
- fid:n: (fid of the track inside the database; stored inside the trksession as userdata)
|
player_play |
- trkid:n:index_of_trk
- fid:n: (fid of the track inside the database; stored inside the trksession as userdata)
- state::PLAYING
- position:n: (current position of the track)
- duration:n: (for iPods only, duration of the track)
|
player_stop |
If called when player is PLAYING or PAUSED:
|