#include <minicontrol-type.h>
#include "vp-play-type-define.h"
+#include "mp-video-value-define.h"
#include "vp-play-string-define.h"
#include "vp-play-value-define.h"
#include "vp-play-macro-define.h"
return;
}
Evas_Object *win = NULL;
- win = minicontrol_create_window("musicplayer-mini", MINICONTROL_TARGET_VIEWER_QUICK_PANEL, _quick_panel_cb);
+ win = minicontrol_create_window("videoplayer-mini", MINICONTROL_TARGET_VIEWER_QUICK_PANEL, _quick_panel_cb);
if (!win) {
VideoLogError("window is NULL");
VideoLogDebug("Updating thumbnail!!!!!!!!!!!!!!");
char *thumbnail_path = NULL;
vp_media_contents_get_video_thumbnail_path(pPlayView->szMediaURL, &thumbnail_path);
- VideoLogInfo("thumbnail = %s:%s", pPlayView->szMediaURL, thumbnail_path);
- elm_image_file_set(pPlayView->minicon_icon, thumbnail_path, NULL);
+
+ if (thumbnail_path == NULL) {
+ VideoLogInfo("Cannot generate thumbnail for video file. Switching to default path.");
+ char edj_path[1024] = {0};
+
+ char *path = app_get_resource_path();
+ snprintf(edj_path, 1024, "%s%s/%s", path, "edje", VIDEO_PLAYER_IMAGE_NAME_EDJ);
+ free(path);
+ elm_image_file_set(pPlayView->minicon_icon, edj_path, VP_PLAY_NORMAL_AUDIO_ONLY_IMG);
+ evas_object_color_set(pPlayView->minicon_icon, 0, 0, 0, 255);
+ } else {
+ VideoLogInfo("thumbnail = %s:%s", pPlayView->szMediaURL, thumbnail_path);
+ elm_image_file_set(pPlayView->minicon_icon, thumbnail_path, NULL);
+ }
evas_object_show(pPlayView->minicon_icon);
if (with_title) {