<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>
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<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>
<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>
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);