}
int nRet = -1;
- #if defined(MOBILE) || defined(TV) || defined( WEARABLE) //Starts MOBILE or WEARABLE or TV
- 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 WEARABLE or TV
- #if defined(TIZENIOT) //Starts TIZENIOT
- 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 TIZENIOT
+ #ifndef TIZENIOT // For Mobile or Wearable or TV
+ nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_EVAS, g_pEvasObject);
+ PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
+ #else //End MOBILE or WEARABLE or TV, Starts TIZENIOT
+ nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_OVERLAY, g_pEvasWindow);
+ PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
+ #endif //End TIZENIOT
nRet = player_set_subtitle_path(g_player, pPath);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_subtitle_path", PlayerGetError(nRet));
}
int nRet = -1;
- #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or WEARABLE or TV
- 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 WEARABLE or TV
- #if defined(TIZENIOT) //Starts TIZENIOT
- 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 TIZENIOT
+ #ifndef TIZENIOT // For Mobile or Wearable or TV
+ nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_EVAS, g_pEvasObject);
+ PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
+ #else //End MOBILE or WEARABLE or TV, Starts TIZENIOT
+ nRet = player_set_display(g_player, PLAYER_DISPLAY_TYPE_OVERLAY, g_pEvasWindow);
+ PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_display", PlayerGetError(nRet));
+ #endif //End TIZENIOT
nRet = player_set_subtitle_path(g_player, pPath);
PRINT_RESULT(PLAYER_ERROR_NONE, nRet, "player_set_subtitle_path", PlayerGetError(nRet));
player_state_e state;
int nRet = -1;
- #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
+ #ifndef TIZENIOT // For Mobile or Wearable or TV
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 or WEARABLE
player_state_e state;
int nRet = -1;
- #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
+ #ifndef TIZENIOT // For Mobile or Wearable or TV
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 or WEARABLE
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) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
+ #ifndef TIZENIOT // For Mobile or Wearable or TV
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 or WEARABLE
int nRet = -1;
- #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
+ #ifndef TIZENIOT // For Mobile or Wearable or TV
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 or WEARABLE
int nCount = 0;
int nRet = -1;
- #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
+ #ifndef TIZENIOT // For Mobile or Wearable or TV
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 or WEARABLE
int nCount = 0, nIndex = 0;
int nRet = -1;
- #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
+ #ifndef TIZENIOT // For Mobile or Wearable or TV
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 or WEARABLE
char *pszLangCode = NULL;
int nRet = -1;
- #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
+ #ifndef TIZENIOT // For Mobile or Wearable or TV
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 or WEARABLE
int nCount = 0, nIndex = 0;
int nRet = -1;
- #if defined(MOBILE) || defined(TV) || defined(WEARABLE) //Starts MOBILE or TV or WEARABLE
+ #ifndef TIZENIOT // For Mobile or Wearable or TV
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 or WEARABLE
int nRet = -1;
- #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 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));
+
sleep(2);
nRet = player_set_uri(g_player, pPath);
player_unprepare(g_player);
return 0;
}
-#endif //TIZENIOT
+#endif // End of Mobile or Wearable or TV
//& purpose: set and get the play position for playback
//& type : auto