From 9d9c92fadc1f45802fcf47885891906044bef44c Mon Sep 17 00:00:00 2001 From: Ji Yong Min Date: Mon, 5 Oct 2015 19:35:15 +0900 Subject: [PATCH] [media-controller][ACR-381] Modify enum Change-Id: I3e563940c03417869e6af97624f6804ca80c9f31 Signed-off-by: Jiyong Min --- .../html/native/multimedia/media_controller_n.htm | 48 +++++++++++----------- .../multimedia/media_controller_tutorial_n.htm | 5 ++- 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/org.tizen.guides/html/native/multimedia/media_controller_n.htm b/org.tizen.guides/html/native/multimedia/media_controller_n.htm index a103043..27460cc 100644 --- a/org.tizen.guides/html/native/multimedia/media_controller_n.htm +++ b/org.tizen.guides/html/native/multimedia/media_controller_n.htm @@ -68,57 +68,57 @@ Playback states - MEDIA_PLAYBACK_STATE_NONE + MC_PLAYBACK_STATE_NONE No history of media playback - MEDIA_PLAYBACK_STATE_PLAYING + MC_PLAYBACK_STATE_PLAYING Playback state of playing - MEDIA_PLAYBACK_STATE_PAUSED + MC_PLAYBACK_STATE_PAUSED Playback state of paused - MEDIA_PLAYBACK_STATE_STOPPED + MC_PLAYBACK_STATE_STOPPED Playback state of stopped - MEDIA_PLAYBACK_STATE_NEXT_FILE + MC_PLAYBACK_STATE_NEXT_FILE Playback state of next file - MEDIA_PLAYBACK_STATE_PREV_FILE + MC_PLAYBACK_STATE_PREV_FILE Playback state of previous file - MEDIA_PLAYBACK_STATE_FAST_FORWARD + MC_PLAYBACK_STATE_FAST_FORWARD Playback state of fast forward - MEDIA_PLAYBACK_STATE_REWIND + MC_PLAYBACK_STATE_REWIND Playback state of rewind Shuffle mode states - SHUFFLE_MODE_ON + MC_SHUFFLE_MODE_ON Shuffle mode is on - SHUFFLE_MODE_OFF + MC_SHUFFLE_MODE_OFF Shuffle mode is off Repeat mode states - REPEAT_MODE_ON + MC_REPEAT_MODE_ON Repeat mode is on - REPEAT_MODE_OFF + MC_REPEAT_MODE_OFF Repeat mode is off @@ -133,47 +133,47 @@ Description - MEDIA_TITLE + MC_META_MEDIA_TITLE Title of the latest content in the media controller server - MEDIA_ARTIST + MC_META_MEDIA_ARTIST Artist of the latest content in the media controller server - MEDIA_ALBUM + MC_META_MEDIA_ALBUM Album name of the latest content in the media controller server - MEDIA_AUTHOR + MC_META_MEDIA_AUTHOR Author of the latest content in the media controller server - MEDIA_GENRE + MC_META_MEDIA_GENRE Genre of the latest content in the media controller server - MEDIA_DURATION + MC_META_MEDIA_DURATION Duration of the latest content in the media controller server - MEDIA_DATE + MC_META_MEDIA_DATE Date of the latest content in the media controller server - MEDIA_COPYRIGHT + MC_META_MEDIA_COPYRIGHT Copyright of the latest content in the media controller server - MEDIA_DESCRIPTION + MC_META_MEDIA_DESCRIPTION Description of the latest content in the media controller server - MEDIA_TRACK_NUM + MC_META_MEDIA_TRACK_NUM Track number of the latest content in the media controller server - MEDIA_PICTURE + MC_META_MEDIA_PICTURE Album art of the latest content in the media controller server @@ -202,4 +202,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga - \ No newline at end of file + diff --git a/org.tizen.tutorials/html/native/multimedia/media_controller_tutorial_n.htm b/org.tizen.tutorials/html/native/multimedia/media_controller_tutorial_n.htm index cdcbcd3..beaa987 100644 --- a/org.tizen.tutorials/html/native/multimedia/media_controller_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/multimedia/media_controller_tutorial_n.htm @@ -5,6 +5,7 @@ + @@ -92,7 +93,7 @@ ret = mc_server_create(&g_server_h);

After the information is set, use the mc_server_update_playback_info() function to update the information.

-ret = mc_server_set_playback_state(g_mc_server, MEDIA_PLAYBACK_STATE_PLAYING);
+ret = mc_server_set_playback_state(g_mc_server, MC_PLAYBACK_STATE_PLAYING);
 
 ret = mc_server_update_playback_info(g_mc_server);
 
@@ -149,7 +150,7 @@ ret = mc_client_create(&g_client_h); char *server_name = NULL; mc_playback_h playback = NULL; mc_server_state_e server_state; -mc_playback_states_e playback_state = MEDIA_PLAYBACK_STATE_PLAYING; +mc_playback_states_e playback_state = MC_PLAYBACK_STATE_PLAYING; ret = mc_client_get_latest_server_info(g_mc_client, &server_name, &server_state); dlog_print(DLOG_DEBUG, LOG_TAG, "Server Name: %s, Server state: %d\n", server_name, server_state); -- 2.7.4