char icon_path[1024] = {0};
if (state == PLAYER_STATE_PLAYING || state == PLAYER_STATE_IDLE) {
- snprintf(icon_path, 1024, "%sshared_images/T02_control_circle_icon_pause.png", path);
- } else {
snprintf(icon_path, 1024, "%sshared_images/T02_control_circle_icon_play.png", path);
+ } else {
+ snprintf(icon_path, 1024, "%sshared_images/T02_control_circle_icon_pause.png", path);
}
free(path);
return &buf[0];
}
-
+#ifndef SOUND_PLAYER
void mp_post_notification_indicator(char *status)
{
startfunc;
char icon_path[1024] = {0};
if (!strcmp(status, "playing")) {
- snprintf(icon_path, 1024, "%sshared_images/T02_control_circle_icon_pause.png", path);
- } else {
snprintf(icon_path, 1024, "%sshared_images/T02_control_circle_icon_play.png", path);
+ } else {
+ snprintf(icon_path, 1024, "%sshared_images/T02_control_circle_icon_pause.png", path);
}
free(path);
DEBUG_TRACE("notification create");
notification_delete_all(NOTIFICATION_TYPE_NOTI);
ad->noti = notification_create(noti_type);
+ ret = notification_set_property(ad->noti, NOTIFICATION_PROP_VOLATILE_DISPLAY);
+ if (ret != NOTIFICATION_ERROR_NONE) {
+ DEBUG_TRACE("Cannot set the notification property");
+ }
ret = notification_set_image(ad->noti, img_type, icon_path);
if (ret != NOTIFICATION_ERROR_NONE) {
DEBUG_TRACE("Cannot set the notification image");
fclose(file);
}
+#endif
mp_music_view_mgr_release();
#endif
+#ifndef SOUND_PLAYER
notification_delete(ad->noti);
notification_free(ad->noti);
+#endif
return;
}
}
PROFILE_OUT("mp_service");
-
+#ifndef SOUND_PLAYER
char *path = app_get_data_path();
DEBUG_TRACE("Path is: %s", path);
char playing_status[1024] = {0};
if (ad->monitor == NULL) {
ad->monitor = ecore_file_monitor_add(playing_status, mp_noti_read_ini_file, NULL);
}
+#endif
#ifdef MP_DEBUG_MODE