Media Controller
Tizen enables you to communicate between the media controller server and the media controller client.
This feature is supported in mobile applications only.
The main features of the Media Controller API include:
- Media controller server
The media controller server provides current information about the registered application that you can send to the client.
To transfer the information at the client request, the media controller server updates the state information while the application is active. If application is terminated when the client request arrives, the media controller server transfers the latest information.
- Media controller client
You can request information, and the media controller client can receive it from the media controller server through a callback.
The following tables define the various information the client can receive.
Table: Media controller server state attributes Attribute Description Server states MC_SERVER_ACTIVATE Requested media controller server is active MC_SERVER_DEACTIVATE Requested media controller server is not active Playback states MC_PLAYBACK_STATE_NONE No history of media playback MC_PLAYBACK_STATE_PLAYING Playback state of playing MC_PLAYBACK_STATE_PAUSED Playback state of paused MC_PLAYBACK_STATE_STOPPED Playback state of stopped MC_PLAYBACK_STATE_NEXT_FILE Playback state of next file MC_PLAYBACK_STATE_PREV_FILE Playback state of previous file MC_PLAYBACK_STATE_FAST_FORWARD Playback state of fast forward MC_PLAYBACK_STATE_REWIND Playback state of rewind Shuffle mode states MC_SHUFFLE_MODE_ON Shuffle mode is on MC_SHUFFLE_MODE_OFF Shuffle mode is off Repeat mode states MC_REPEAT_MODE_ON Repeat mode is on MC_REPEAT_MODE_OFF Repeat mode is off Table: Media controller server metadata attributes Attribute Description MC_META_MEDIA_TITLE Title of the latest content in the media controller server MC_META_MEDIA_ARTIST Artist of the latest content in the media controller server MC_META_MEDIA_ALBUM Album name of the latest content in the media controller server MC_META_MEDIA_AUTHOR Author of the latest content in the media controller server MC_META_MEDIA_GENRE Genre of the latest content in the media controller server MC_META_MEDIA_DURATION Duration of the latest content in the media controller server MC_META_MEDIA_DATE Date of the latest content in the media controller server MC_META_MEDIA_COPYRIGHT Copyright of the latest content in the media controller server MC_META_MEDIA_DESCRIPTION Description of the latest content in the media controller server MC_META_MEDIA_TRACK_NUM Track number of the latest content in the media controller server MC_META_MEDIA_PICTURE Album art of the latest content in the media controller server