void mp_setting_remove_now_playing_shared_status(void)
{
startfunc;
+#ifndef MP_SOUND_PLAYER
char *path = app_get_data_path();
char playing_status[1024] = { 0 };
if (path == NULL) {
fprintf(fp, " \n");
fclose(fp);
-
+#endif
endfunc;
}
char str[1000] = { 0, };
int valid_uri = 0;
int valid_status = 0;
+#ifndef MP_SOUND_PLAYER
char *path = app_get_data_path();
if (!path) {
return -1;
if (fp) {
fclose(fp);
}
+#endif
return 0;
}
{
startfunc;
int count = 0;
+#ifndef MP_SOUND_PLAYER
mp_media_info_list_count(MP_TRACK_ALL, NULL, NULL, NULL, 0, &count);
if (count <= 0) {
mp_setting_remove_now_playing_shared_status();
fprintf(fp, "#Nowplaying\n");
fprintf(fp, "uri=%s\n", uri);
fprintf(fp, "status=%s\n", status);
-#ifndef MP_SOUND_PLAYER
+//#ifndef MP_SOUND_PLAYER
struct appdata *ad = mp_util_get_appdata();
if (ad && ad->current_track_info) {
fprintf(fp, "title=%s\n", ad->current_track_info->title);
shared_path);
}
}
-#endif
+//#endif
fprintf(fp, "changePlayer=%s\n", "false");
fsync((int) fp);
fclose(fp);
}
-
+#endif
endfunc;
}