Tizen Native API
9.0
|
The Media Controller API provides functions for communication between the media controller server and the media controller client.
Required Header
#include <media_controller_server.h>
#include <media_controller_client.h>
Overview
The Media Controller API provides a set of functions to an effective communication between the server and the client for delivering the latest server information. It helps to transfer the information like playback info, shuffle mode, or the metadata of the latest server.
To programming the interface, first, create a handler via mc_client_create() or mc_server_create(). And then, the client request the necessary information to the server by using mc_client_set_server_updated_cb(), or mc_client_set_playback_updated_cb(). The server provides the requested information to the client by the callback.
Typedefs | |
typedef void * | mc_server_h |
The structure type for the media server handle. | |
typedef void * | mc_client_h |
The structure type for the media client handle. | |
typedef void * | mc_playback_h |
The structure type for the media controller playback handle. | |
typedef void * | mc_metadata_h |
The structure type for the media controller metadata handle. | |
typedef void * | mc_playlist_h |
The structure type for the media controller playlist handle. | |
typedef void * | mc_playback_ability_h |
The structure type for the media controller ability handle. | |
typedef void * | mc_search_h |
The structure type for the media controller search handle. |
Typedef Documentation
typedef void* mc_client_h |
The structure type for the media client handle.
- Since :
- 2.4
typedef void* mc_metadata_h |
The structure type for the media controller metadata handle.
- Since :
- 2.4
typedef void* mc_playback_ability_h |
The structure type for the media controller ability handle.
- Since :
- 5.0
typedef void* mc_playback_h |
The structure type for the media controller playback handle.
- Since :
- 2.4
typedef void* mc_playlist_h |
The structure type for the media controller playlist handle.
- Since :
- 4.0
typedef void* mc_search_h |
The structure type for the media controller search handle.
- Since :
- 5.0
typedef void* mc_server_h |
The structure type for the media server handle.
- Since :
- 2.4
Enumeration Type Documentation
enum mc_ability_e |
Enumeration for the ability of the media controller server.
- Since :
- 5.5
- See also:
- mc_server_set_ability_support()
- mc_client_get_server_ability_support()
- mc_ability_support_updated_cb()
- Enumerator:
enum mc_ability_support_e |
Enumeration for the support of the ability by the media controller server.
- Since :
- 5.0
- Remarks:
- The media controller server should set the proper abilities.
Only then can media controller clients send the appropriate control commands.
Enumeration for the content age rating of the media content by the media controller server.
- Since :
- 5.0
- Enumerator:
enum mc_content_type_e |
Enumeration for the content type of the media content by the media controller server.
Media controller clients can use this to know the playback status of the media controller server.
And media controller clients can also use to search for the content provided by the media controller server.
- Since :
- 5.0
enum mc_display_mode_e |
Enumeration for the display mode of the media controller server.
- Since :
- 5.5
Enumeration for the display rotation of the media controller server.
- Since :
- 5.5
enum mc_error_e |
Enumeration for the media controller error.
- Since :
- 2.4
- Enumerator:
enum mc_meta_e |
Enumeration for the media meta info.
- Since :
- 2.4
- Enumerator:
enum mc_playback_action_e |
Enumeration for the media playback action.
Media controller clients can control media controller server's playback by calling mc_client_send_playback_action_cmd() or mc_client_send_playlist_cmd().
Media controller servers have to set proper playback ability by using mc_server_set_playback_ability().
- Since :
- 4.0
- See also:
- mc_server_set_playback_ability()
- mc_client_send_playback_action_cmd()
- mc_client_send_playlist_cmd()
- mc_playback_action_is_supported()
- mc_server_playback_action_cmd_received_cb()
- mc_server_playlist_cmd_received_cb()
- Enumerator:
enum mc_playback_states_e |
Enumeration for the media playback state of the media controller server.
- Since :
- 2.4
- Enumerator:
Enumeration for the playlist update mode.
Media controller clients can know the playlist change status of the media controller server by calling mc_client_set_playlist_updated_cb().
- Since :
- 4.0
enum mc_repeat_mode_e |
Enumeration for the repeat mode of the media controller server.
- Since :
- 2.4
enum mc_result_code_e |
The result codes of the reply for the command or the event.
- Since :
- 6.0
- See also:
- mc_cmd_reply_received_cb()
- mc_client_send_event_reply()
- mc_server_event_reply_received_cb()
- mc_server_send_cmd_reply()
- Enumerator:
enum mc_search_category_e |
Enumeration for the search category.
Media controller clients can use this to search for the content provided by the media controller server.
- Since :
- 5.0
- See also:
- mc_search_set_condition()
enum mc_server_state_e |
Enumeration for the media controller server state.
- Since :
- 2.4
enum mc_shuffle_mode_e |
Enumeration for the shuffle mode of the media controller server.
- Since :
- 2.4
Enumeration for the subscription type of the media controller client.
- Since :
- 2.4
- Enumerator: