* @precondition NA
* @postcondition NA
* */
- //& type: auto
+//& type: auto
//& purpose: To check wether set and unset of callback is correct or not
int ITc_mc_client_set_unset_playlist_updated_cb_p(void)
{
* @precondition NA
* @postcondition NA
* */
- //& type: auto
+//& type: auto
//& purpose: To get playlist name
int ITc_mc_playlist_get_name_p(void)
{
* @precondition NA
* @postcondition NA
* */
- //& type: auto
+//& type: auto
//& purpose: To set and unset the callback for monitoring the playback ability of the media controller server.
int ITc_mc_client_set_unset_playback_ability_updated_cb_p(void)
{
* @precondition NA
* @postcondition NA
* */
- //& type: auto
+//& type: auto
//& purpose: To set and get the playlist name and index of the media in playlist.
int ITc_mc_client_set_get_playlist_item_info_p(void)
{
* @precondition NA
* @postcondition NA
* */
- //& type: auto
+//& type: auto
//& purpose: To set and get age rating of the content to update the latest playback info.
int ITc_mc_client_set_get_age_rating_p(void)
{
* @precondition NA
* @postcondition NA
* */
- //& type: auto
+//& type: auto
//& purpose: Sends the search command to server.
int ITc_mc_client_send_search_cmd_p(void)
{
* @precondition NA
* @postcondition NA
* */
- //& type: auto
+//& type: auto
//& purpose: To test mc_search_create, mc_search_clone, mc_search_destroy.
int ITc_mc_search_create_clone_destroy_p(void)
{
* @precondition NA
* @postcondition NA
* */
- //& type: auto
+//& type: auto
//& purpose: Sets the information to search.
int ITc_mc_search_set_condition_p(void)
{
* @precondition NA
* @postcondition NA
* */
- //& type: auto
+//& type: auto
//& purpose: This function gets all search conditions set.
int ITc_mc_search_foreach_condition_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: This function gets the number of conditions to search.
int ITc_mc_search_get_condition_count_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: This function Set and Unset callback for ability support.
int ITc_mc_client_set_unset_ability_support_updated_cb_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Gets the support value of the ability support of the updated media controller server.
int ITc_mc_client_get_server_ability_support_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Sets and unset the callback for monitoring the display mode ability of the media controller server.
int ITc_mc_client_set_unset_display_mode_ability_updated_cb_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Sets and unsets the callback for monitoring the display rotation ability of the media controller server.
int ITc_mc_client_set_unset_display_rotation_ability_updated_cb_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Sets and unsets the callback for monitoring the media controller server's subtitles display.
int ITc_mc_client_set_unset_subtitles_updated_cb_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Sets and unsets the callback for monitoring the media controller server's 360 mode display.
int ITc_mc_client_set_unset_360_mode_updated_cb_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Sets and unsets the callback for monitoring the media controller server's display mode.
int ITc_mc_client_set_unset_display_mode_updated_cb_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Sets and unsets the callback for monitoring the media controller server's display rotation.
int ITc_mc_client_set_unset_display_rotation_updated_cb_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Gets the latest subtitles display status.
int ITc_mc_client_get_server_subtitles_enabled_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Gets the latest subtitles display status.
int ITc_mc_client_get_server_360_mode_enabled_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Gets the latest display mode.
int ITc_mc_client_get_server_display_mode_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Gets the latest display rotation.
int ITc_mc_client_get_server_display_rotation_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Gets the supported display mode of the updated media controller server.
int ITc_mc_client_get_server_display_mode_ability_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Gets the supported display rotation of the updated media controller server.
int ITc_mc_client_get_server_display_rotation_ability_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Sends the subtitles command to server.
int ITc_mc_client_send_subtitles_cmd_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Sends the 360 mode command to server.
int ITc_mc_client_send_360_mode_cmd_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Sends the display mode command to server.
int ITc_mc_client_send_display_mode_cmd_p(void)
{
* @precondition mc_server_create
* @postcondition mc_server_destroy
* */
- //& type: auto
+//& type: auto
//& purpose: Sends the display rotation command to server.
int ITc_mc_client_send_display_rotation_cmd_p(void)
{
*/
int ServerMcRegisterPlaylist(mc_playlist_h *hPlaylistReg)
{
- int nRet = MEDIA_CONTROLLER_ERROR_NONE;
- mc_playlist_h hPlaylist = NULL;
+ int nRet = MEDIA_CONTROLLER_ERROR_NONE;
+ mc_playlist_h hPlaylist = NULL;
- nRet = mc_server_create_playlist(g_hMcServer, g_PlaylistName, &hPlaylist);
- PRINT_RESULT(MEDIA_CONTROLLER_ERROR_NONE, nRet, "mc_server_create_playlist", MediaControllerGetError(nRet));
- CHECK_HANDLE(hPlaylist, "mc_server_create_playlist");
+ nRet = mc_server_create_playlist(g_hMcServer, g_PlaylistName, &hPlaylist);
+ PRINT_RESULT(MEDIA_CONTROLLER_ERROR_NONE, nRet, "mc_server_create_playlist", MediaControllerGetError(nRet));
+ CHECK_HANDLE(hPlaylist, "mc_server_create_playlist");
- int sSize = sizeof(g_PlaylistArray)/sizeof(g_PlaylistArray[0]);
- int StringIndex = 0;
- for(StringIndex = 0; StringIndex < sSize; StringIndex++)
- {
- FPRINTF("[%d:%s] Adding item to playlist index=%d, [%s]\n", __LINE__, __FUNCTION__, StringIndex, g_PlaylistArray[StringIndex]);
- nRet = mc_server_add_item_to_playlist(g_hMcServer, hPlaylist, "1", StringIndex, g_PlaylistArray[StringIndex]);
- PRINT_RESULT_CLEANUP(MEDIA_CONTROLLER_ERROR_NONE, nRet, "mc_server_add_item_to_playlist", MediaControllerGetError(nRet),mc_playlist_destroy(hPlaylist));
- }
+ int sSize = sizeof(g_PlaylistArray)/sizeof(g_PlaylistArray[0]);
+ int StringIndex = 0;
+ for(StringIndex = 0; StringIndex < sSize; StringIndex++)
+ {
+ FPRINTF("[%d:%s] Adding item to playlist index=%d, [%s]\n", __LINE__, __FUNCTION__, StringIndex, g_PlaylistArray[StringIndex]);
+ nRet = mc_server_add_item_to_playlist(g_hMcServer, hPlaylist, "1", StringIndex, g_PlaylistArray[StringIndex]);
+ PRINT_RESULT_CLEANUP(MEDIA_CONTROLLER_ERROR_NONE, nRet, "mc_server_add_item_to_playlist", MediaControllerGetError(nRet),mc_playlist_destroy(hPlaylist));
+ }
- nRet = mc_server_update_playlist_done(g_hMcServer, hPlaylist);
- PRINT_RESULT_CLEANUP(MEDIA_CONTROLLER_ERROR_NONE, nRet, "mc_server_update_playlist_done", MediaControllerGetError(nRet),mc_playlist_destroy(hPlaylist));
+ nRet = mc_server_update_playlist_done(g_hMcServer, hPlaylist);
+ PRINT_RESULT_CLEANUP(MEDIA_CONTROLLER_ERROR_NONE, nRet, "mc_server_update_playlist_done", MediaControllerGetError(nRet),mc_playlist_destroy(hPlaylist));
- *hPlaylistReg = hPlaylist;
+ *hPlaylistReg = hPlaylist;
- return MEDIA_CONTROLLER_ERROR_NONE;
+ return MEDIA_CONTROLLER_ERROR_NONE;
}
/*
PRINT_RESULT(MEDIA_CONTROLLER_ERROR_NONE, nRet, "mc_server_create_playlist", MediaControllerGetError(nRet));
CHECK_HANDLE(hPlaylist, "mc_server_create_playlist");
- int sSize = sizeof(g_PlaylistArray)/sizeof(g_PlaylistArray[0]);
- int StringIndex = 0;
- for(StringIndex = 0; StringIndex < sSize; StringIndex++)
+ int nSize = sizeof(g_PlaylistArray)/sizeof(g_PlaylistArray[0]);
+
+ for(int nStringIndex = 0; nStringIndex < nSize; nStringIndex++)
{
- FPRINTF("[%d:%s] Adding item to playlist index=%d, [%s]\n", __LINE__, __FUNCTION__, StringIndex, g_PlaylistArray[StringIndex]);
- nRet = mc_server_add_item_to_playlist(g_hMcServer, hPlaylist, pszIndex, StringIndex, g_PlaylistArray[StringIndex]);
+ FPRINTF("[%d:%s] Adding item to playlist index=%d, [%s]\n", __LINE__, __FUNCTION__, nStringIndex, g_PlaylistArray[nStringIndex]);
+ nRet = mc_server_add_item_to_playlist(g_hMcServer, hPlaylist, pszIndex, nStringIndex, g_PlaylistArray[nStringIndex]);
PRINT_RESULT_CLEANUP(MEDIA_CONTROLLER_ERROR_NONE, nRet, "mc_server_add_item_to_playlist", MediaControllerGetError(nRet),mc_playlist_destroy(hPlaylist));
}
PRINT_RESULT(MEDIA_CONTROLLER_ERROR_NONE, nRet, "mc_server_create_playlist", MediaControllerGetError(nRet));
CHECK_HANDLE(hPlaylist, "mc_server_create_playlist");
- int sSize = sizeof(g_PlaylistArray)/sizeof(g_PlaylistArray[0]);
- int StringIndex = 0;
- for(StringIndex = 0; StringIndex < sSize; StringIndex++)
+ int nSize = sizeof(g_PlaylistArray)/sizeof(g_PlaylistArray[0]);
+
+ for(int nStringIndex = 0; nStringIndex < nSize; nStringIndex++)
{
- FPRINTF("[%d:%s] Adding item to playlist index=%d, [%s]\n", __LINE__, __FUNCTION__, StringIndex, g_PlaylistArray[StringIndex]);
- nRet = mc_server_add_item_to_playlist(g_hMcServer, hPlaylist, pszIndex, StringIndex, g_PlaylistArray[StringIndex]);
+ FPRINTF("[%d:%s] Adding item to playlist index=%d, [%s]\n", __LINE__, __FUNCTION__, nStringIndex, g_PlaylistArray[nStringIndex]);
+ nRet = mc_server_add_item_to_playlist(g_hMcServer, hPlaylist, pszIndex, nStringIndex, g_PlaylistArray[nStringIndex]);
PRINT_RESULT_CLEANUP(MEDIA_CONTROLLER_ERROR_NONE, nRet, "mc_server_add_item_to_playlist", MediaControllerGetError(nRet),mc_playlist_destroy(hPlaylist));
}