Tizen Native API  3.0
Media Controller

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_update_cb(), or mc_client_set_playback_update_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 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_h

The structure type for the media controller playback handle.

Since :
2.4
typedef void* mc_server_h

The structure type for the media server handle.

Since :
2.4

Enumeration Type Documentation

enum mc_error_e

Enumeration for the media controller error.

Since :
2.4
Enumerator:
MEDIA_CONTROLLER_ERROR_NONE 

Successful

MEDIA_CONTROLLER_ERROR_INVALID_PARAMETER 

Invalid parameter

MEDIA_CONTROLLER_ERROR_OUT_OF_MEMORY 

Out of memory

MEDIA_CONTROLLER_ERROR_INVALID_OPERATION 

Invalid Operation

MEDIA_CONTROLLER_ERROR_FILE_NO_SPACE_ON_DEVICE 

No space left on device

MEDIA_CONTROLLER_ERROR_PERMISSION_DENIED 

Permission denied

enum mc_meta_e

Enumeration for the media meta info.

Since :
2.4
Enumerator:
MC_META_MEDIA_TITLE 

Title

MC_META_MEDIA_ARTIST 

Artist

MC_META_MEDIA_ALBUM 

Album

MC_META_MEDIA_AUTHOR 

Author

MC_META_MEDIA_GENRE 

Genre

MC_META_MEDIA_DURATION 

Duration

MC_META_MEDIA_DATE 

Date

MC_META_MEDIA_COPYRIGHT 

Copyright

MC_META_MEDIA_DESCRIPTION 

Description

MC_META_MEDIA_TRACK_NUM 

Track Number

MC_META_MEDIA_PICTURE 

Picture. Album Art

Enumeration for the media playback state.

Since :
2.4
Enumerator:
MC_PLAYBACK_STATE_NONE 

None

MC_PLAYBACK_STATE_PLAYING 

Play

MC_PLAYBACK_STATE_PAUSED 

Pause

MC_PLAYBACK_STATE_STOPPED 

Stop

MC_PLAYBACK_STATE_NEXT_FILE 

Next file

MC_PLAYBACK_STATE_PREV_FILE 

Previous file

MC_PLAYBACK_STATE_FAST_FORWARD 

Fast forward

MC_PLAYBACK_STATE_REWIND 

Rewind

Enumeration for the repeat mode.

Since :
2.4
Enumerator:
MC_REPEAT_MODE_ON 

Repeat mode on

MC_REPEAT_MODE_OFF 

Repeat mode off

Enumeration for the media controller server state.

Since :
2.4
Enumerator:
MC_SERVER_STATE_NONE 

None state

MC_SERVER_STATE_ACTIVATE 

Activate state

MC_SERVER_STATE_DEACTIVATE 

Deactivate state

Enumeration for the shuffle mode.

Since :
2.4
Enumerator:
MC_SHUFFLE_MODE_ON 

Shuffle mode on

MC_SHUFFLE_MODE_OFF 

Shuffle mode off

Enumeration for the subscription type.

Since :
2.4
Enumerator:
MC_SUBSCRIPTION_TYPE_SERVER_STATE 

Server state

MC_SUBSCRIPTION_TYPE_PLAYBACK 

Playback

MC_SUBSCRIPTION_TYPE_METADATA 

Metadata

MC_SUBSCRIPTION_TYPE_SHUFFLE_MODE 

Shuffle mode

MC_SUBSCRIPTION_TYPE_REPEAT_MODE 

Repeat mode