g_bPlayerVideoCaptureCallback = true;
ecore_main_loop_quit();
}
-#endif // TIZENIOT //For TIZENIOT
+#endif // End of Mobile or Wearable or TV
//Callbacks
#endif // TIZENIOT
}
-#if (defined(MOBILE) || defined(TIZENIOT) || defined(WEARABLE) || (defined(TV) && defined(_MEDIA_STREAM_API )) ) //Starts MOBILE or TIZENIOT or WEARABLE or TV
+#if (defined(MOBILE) || defined(TIZENIOT) || defined(WEARABLE) || (defined(TV) && defined(_MEDIA_STREAM_API )) ) //Starts MOBILE or TIZENIOT or WEARABLE or TV
//Callbacks
bool CheckConnectionStatistics(connection_h connection, long long *size)
{
-#define _FEATURE_NAME_WIFI "http://tizen.org/feature/network.wifi"
-#define _FEATURE_NAME_TELEPHONY "http://tizen.org/feature/network.telephony"
-
long long rv = 0;
int err = CONNECTION_ERROR_NONE;
connection_type_e type = CONNECTION_TYPE_DISCONNECTED;
bool wifi_supported = false;
bool telepony_supported = false;
- system_info_get_platform_bool(_FEATURE_NAME_WIFI, &wifi_supported);
- system_info_get_platform_bool(_FEATURE_NAME_TELEPHONY, &telepony_supported);
+ system_info_get_platform_bool(WIFI_FEATURE, &wifi_supported);
+ system_info_get_platform_bool(TELEPHONY_FEATURE, &telepony_supported);
if (wifi_supported) {
type = CONNECTION_TYPE_WIFI;
player_state_e state;
int nRet = -1;
- #if defined(MOBILE) || defined(TV) //Starts MOBILE or TV
+ #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_EVAS, g_pEvasObject);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE or TV
- #if defined(WEARABLE) //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_OVERLAY, g_pEvasWindow);
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
+ #endif //End MOBILE or TV or WEARABLE
char pstrValue[CONFIG_VALUE_LEN_MAX] = {0,};
if ( true == GetValueFromConfigFile("PLAYER_HTTP_STREAMING_URL", pstrValue, API_NAMESPACE))
player_state_e state;
int nRet = -1;
- #if defined(MOBILE) || defined(TV) //Starts MOBILE or TV
+ #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_EVAS, g_pEvasObject);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE or TV
- #if defined(WEARABLE) //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_OVERLAY, g_pEvasWindow);
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
-
+ #endif //End MOBILE or TV or WEARABLE
sleep(2);
int nRet = player_set_completed_cb(g_player, PlayerCompletedCallback, NULL);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_completed_cb", PlayerGetError(nRet));
-
- #if defined(MOBILE) || defined(TV) //Starts MOBILE or TV
+ #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_EVAS, GET_DISPLAY(g_pEvasObject));
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE or TV
- #if defined(WEARABLE) //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_OVERLAY, GET_DISPLAY(g_pEvasWindow));
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
-
+ #endif //End MOBILE or TV or WEARABLE
if ( InitializePlayerHandler(true, 1) == false )
{
int nRet = player_set_media_packet_video_frame_decoded_cb(g_player, PlayerMediaPacketVideoFrameDecodedCallback, NULL);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_media_packet_video_frame_decoded_cb", PlayerGetError(nRet));
- #if defined(MOBILE) //Starts MOBILE
+ #if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasObject));
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE
- #ifdef WEARABLE //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasWindow));
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
+ #endif //End MOBILE or WEARABLE
if ( InitializePlayerHandler(true, 1) == false )
{
int nRet = -1;
- #if defined(MOBILE) || defined(TV) //Starts MOBILE or TV
+ #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_EVAS, g_pEvasObject);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE or TV
- #if defined(WEARABLE) //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_OVERLAY, g_pEvasWindow);
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
-
+ #endif //End MOBILE or TV or WEARABLE
g_bPlayerPreparedCallback = false;
nRet = player_prepare_async(g_player, PlayerPreparedCallback, NULL);
int nCount = 0;
int nRet = -1;
- #if defined(MOBILE) || defined(TV) //Starts MOBILE or TV
+ #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_EVAS, g_pEvasObject);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE or TV
- #if defined(WEARABLE) //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_OVERLAY, g_pEvasWindow);
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
-
+ #endif //End MOBILE or TV or WEARABLE
sleep(2);
if ( InitializePlayerHandler(true, 1) != true )
int nCount = 0, nIndex = 0;
int nRet = -1;
- #if defined(MOBILE) || defined(TV) //Starts MOBILE or TV
+ #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_EVAS, g_pEvasObject);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE or TV
- #if defined(WEARABLE) //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_OVERLAY, g_pEvasWindow);
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
-
+ #endif //End MOBILE or TV or WEARABLE
sleep(2);
if ( InitializePlayerHandler(true, 1) != true )
char *pszLangCode = NULL;
int nRet = -1;
- #if defined(MOBILE) || defined(TV) //Starts MOBILE or TV
+ #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_EVAS, g_pEvasObject);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE or TV
- #if defined(WEARABLE) //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_OVERLAY, g_pEvasWindow);
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
-
+ #endif //End MOBILE or TV or WEARABLE
sleep(2);
if ( InitializePlayerHandler(true, 1) != true )
int nCount = 0, nIndex = 0;
int nRet = -1;
- #if defined(MOBILE) || defined(TV) //Starts MOBILE or TV
+ #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_EVAS, g_pEvasObject);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE or TV
- #if defined(WEARABLE) //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_OVERLAY, g_pEvasWindow);
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
-
+ #endif //End MOBILE or TV or WEARABLE
sleep(2);
if ( InitializePlayerHandler(true, 1) != true )
int nRet = -1;
- #if defined(MOBILE) || defined(TV) //Starts MOBILE or TV
+ #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_EVAS, g_pEvasObject);
- #endif //MOBILE //End MOBILE or TV
- #if defined(WEARABLE) //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_OVERLAY, g_pEvasWindow);
- #endif //WEARABLE //End WEARABLE
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
-
+ PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
+ #endif //End MOBILE or TV or WEARABLE
sleep(2);
nRet = player_set_uri(g_player, pPath);
{
if(nRet != PLAYER_ERROR_FEATURE_NOT_SUPPORTED_ON_DEVICE)
{
- FPRINTF("[Line : %d][%s] player_set_uri API call returned mismatch %s error for unsupported internet feature\\n", __LINE__, API_NAMESPACE, PlayerGetError(nRet));
+ FPRINTF("[Line : %d][%s] player_set_uri API call returned mismatch %s error for unsupported internet feature\\n", __LINE__, API_NAMESPACE, PlayerGetError(nRet));
return 1;
}
}
return 1;
}
- #if defined(MOBILE) //Starts MOBILE
+ #if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_EVAS, g_pEvasObject);
- #endif //End MOBILE
- #if defined(WEARABLE) //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_OVERLAY, g_pEvasWindow);
- #endif //WEARABLE //End WEARABLE
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
+ PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
+ #endif //End MOBILE or WEARABLE
nRet = player_set_video_stream_changed_cb(g_player, PlayerVideoStreamChangedCallback, NULL);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_video_stream_changed_cb", PlayerGetError(nRet));
return 1;
}
- #if defined(MOBILE) //Starts MOBILE
+ #if defined(MOBILE) || defined (WEARABLE) //Starts MOBILE or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasObject));
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE
- #ifdef WEARABLE //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasWindow));
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
+ #endif //End MOBILE or WEARABLE
nRet = player_set_uri(g_player, pPath);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_uri", PlayerGetError(nRet));
return 1;
}
- #if defined(MOBILE) //Starts MOBILE
+ #if defined(MOBILE) || defined (WEARABLE) //Starts MOBILE or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasObject));
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE
- #ifdef WEARABLE //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasWindow));
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
+ #endif //End MOBILE or WEARABLE
nRet = player_set_uri(g_player, pPath);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_uri", PlayerGetError(nRet));
return 1;
}
- #if defined(MOBILE) //Starts MOBILE
+ #if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasObject));
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE
- #ifdef WEARABLE //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasWindow));
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
+ #endif //End MOBILE or WEARABLE
nRet = player_set_uri(g_player, pPath);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_uri", PlayerGetError(nRet));
return 1;
}
- #if defined(MOBILE) //Starts MOBILE
+ #if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasObject));
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE
- #ifdef WEARABLE //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasWindow));
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
+ #endif //End MOBILE or WEARABLE
nRet = player_set_uri(g_player, pPath);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_uri", PlayerGetError(nRet));
return 1;
}
- #if defined(MOBILE) //Starts MOBILE
+ #if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasObject));
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE
- #ifdef WEARABLE //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasWindow));
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
+ #endif //End MOBILE or WEARABLE
nRet = player_set_uri(g_player, pPath);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_uri", PlayerGetError(nRet));
return 1;
}
- #if defined(MOBILE) //Starts MOBILE
+ #if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasObject));
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE
- #ifdef WEARABLE //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasWindow));
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
+ #endif //End MOBILE or WEARABLE
nRet = player_set_uri(g_player, pPath);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_uri", PlayerGetError(nRet));
return 1;
}
- #if defined(MOBILE) //Starts MOBILE
+ #if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasObject));
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE
- #ifdef WEARABLE //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasWindow));
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
+ #endif //End MOBILE or WEARABLE
nRet = player_set_uri(g_player, pPath);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_uri", PlayerGetError(nRet));
return 1;
}
- #if defined(MOBILE) //Starts MOBILE
+ #if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasObject));
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE
- #ifdef WEARABLE //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasWindow));
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
+ #endif //End MOBILE or WEARABLE
nRet = player_set_uri(g_player, pPath);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_uri", PlayerGetError(nRet));
return 1;
}
- #if defined(MOBILE) //Starts MOBILE
+ #if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasObject));
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE
- #ifdef WEARABLE //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasWindow));
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
+ #endif //End MOBILE or WEARABLE
nRet = player_set_uri(g_player, pPath);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_uri", PlayerGetError(nRet));
return 1;
}
- #if defined(MOBILE) //Starts MOBILE
+ #if defined(MOBILE) || defined(WEARABLE) //Starts MOBILE or WEARABLE
nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasObject));
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //End MOBILE
- #ifdef WEARABLE //Starts WEARABLE
- nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_NONE, GET_DISPLAY(g_pEvasWindow));
- PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
- #endif //WEARABLE //End WEARABLE
+ #endif //End MOBILE or WEARABLE
nRet = player_set_uri(g_player, pPath);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_uri", PlayerGetError(nRet));