[media-controller][ACR-381] Modify enum
authorJi Yong Min <jiyong.min@samsung.com>
Mon, 5 Oct 2015 10:35:15 +0000 (19:35 +0900)
committerJi Yong Min <jiyong.min@samsung.com>
Mon, 5 Oct 2015 10:43:43 +0000 (19:43 +0900)
Change-Id: I3e563940c03417869e6af97624f6804ca80c9f31
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
org.tizen.guides/html/native/multimedia/media_controller_n.htm
org.tizen.tutorials/html/native/multimedia/media_controller_tutorial_n.htm

index a103043..27460cc 100644 (file)
      <td colspan="2"><strong>Playback states</strong></td> 
     </tr> 
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_PLAYBACK_STATE_NONE</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_PLAYBACK_STATE_NONE</span></td>
      <td>No history of media playback</td> 
     </tr> 
      <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_PLAYBACK_STATE_PLAYING</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_PLAYBACK_STATE_PLAYING</span></td>
      <td>Playback state of playing</td> 
     </tr> 
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_PLAYBACK_STATE_PAUSED</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_PLAYBACK_STATE_PAUSED</span></td>
      <td>Playback state of paused</td> 
     </tr> 
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_PLAYBACK_STATE_STOPPED</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_PLAYBACK_STATE_STOPPED</span></td>
      <td>Playback state of stopped</td> 
     </tr> 
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_PLAYBACK_STATE_NEXT_FILE</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_PLAYBACK_STATE_NEXT_FILE</span></td>
      <td>Playback state of next file</td> 
     </tr> 
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_PLAYBACK_STATE_PREV_FILE</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_PLAYBACK_STATE_PREV_FILE</span></td>
      <td>Playback state of previous file</td> 
     </tr> 
      <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_PLAYBACK_STATE_FAST_FORWARD</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_PLAYBACK_STATE_FAST_FORWARD</span></td>
      <td>Playback state of fast forward</td> 
     </tr>
      <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_PLAYBACK_STATE_REWIND</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_PLAYBACK_STATE_REWIND</span></td>
      <td>Playback state of rewind</td> 
     </tr>      
     <tr> 
      <td colspan="2"><strong>Shuffle mode states</strong></td> 
     </tr> 
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">SHUFFLE_MODE_ON</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_SHUFFLE_MODE_ON</span></td>
      <td>Shuffle mode is on</td> 
     </tr> 
      <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">SHUFFLE_MODE_OFF</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_SHUFFLE_MODE_OFF</span></td>
      <td>Shuffle mode is off</td> 
     </tr>      
     <tr> 
      <td colspan="2"><strong>Repeat mode states</strong></td> 
     </tr>      
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">REPEAT_MODE_ON</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_REPEAT_MODE_ON</span></td>
      <td>Repeat mode is on</td> 
     </tr> 
      <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">REPEAT_MODE_OFF</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_REPEAT_MODE_OFF</span></td>
      <td>Repeat mode is off</td> 
     </tr>      
    </tbody> 
      <th>Description</th> 
     </tr> 
      <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_TITLE</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_META_MEDIA_TITLE</span></td>
      <td>Title of the latest content in the media controller server</td> 
     </tr> 
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_ARTIST</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_META_MEDIA_ARTIST</span></td>
      <td>Artist of the latest content in the media controller server</td> 
     </tr> 
      <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_ALBUM</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_META_MEDIA_ALBUM</span></td>
      <td>Album name of the latest content in the media controller server</td> 
     </tr> 
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_AUTHOR</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_META_MEDIA_AUTHOR</span></td>
      <td>Author of the latest content in the media controller server</td> 
     </tr> 
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_GENRE</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_META_MEDIA_GENRE</span></td>
      <td>Genre of the latest content in the media controller server</td> 
     </tr> 
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_DURATION</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_META_MEDIA_DURATION</span></td>
      <td>Duration of the latest content in the media controller server</td> 
     </tr> 
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_DATE</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_META_MEDIA_DATE</span></td>
      <td>Date of the latest content in the media controller server</td> 
     </tr> 
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_COPYRIGHT</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_META_MEDIA_COPYRIGHT</span></td>
      <td>Copyright of the latest content in the media controller server</td> 
     </tr>     
     <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_DESCRIPTION</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_META_MEDIA_DESCRIPTION</span></td>
      <td>Description of the latest content in the media controller server</td> 
     </tr>
      <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_TRACK_NUM</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_META_MEDIA_TRACK_NUM</span></td>
      <td>Track number of the latest content in the media controller server</td> 
     </tr>
      <tr> 
-     <td><span style="font-family: Courier New,Courier,monospace">MEDIA_PICTURE</span></td> 
+     <td><span style="font-family: Courier New,Courier,monospace">MC_META_MEDIA_PICTURE</span></td>
      <td>Album art of the latest content in the media controller server</td> 
     </tr>
    </tbody> 
@@ -202,4 +202,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>
index cdcbcd3..beaa987 100644 (file)
@@ -5,6 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=9" />
     <link rel="stylesheet" type="text/css" href="../../css/styles.css" />
     <link rel="stylesheet" type="text/css" href="../../css/snippet.css" />
+
     <script type="text/javascript" src="../../scripts/snippet.js"></script>
     <script type="text/javascript" src="../../scripts/jquery.util.js" charset="utf-8"></script>
     <script type="text/javascript" src="../../scripts/common.js" charset="utf-8"></script>
@@ -92,7 +93,7 @@ ret = mc_server_create(&amp;g_server_h);
 <p>After the information is set, use the <span style="font-family: Courier New,Courier,monospace;">mc_server_update_playback_info()</span> function to update the information.</p>
 
 <pre class="prettyprint">
-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);
 </pre>
@@ -149,7 +150,7 @@ ret = mc_client_create(&amp;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, &amp;server_name, &amp;server_state);
 dlog_print(DLOG_DEBUG, LOG_TAG, &quot;Server Name: %s, Server state: %d\n&quot;, server_name, server_state);