#define ES_DEFAULT_VIDEO_FORMAT_TYPE MEDIA_FORMAT_H264_SP
#define ES_DEFAULT_VIDEO_FORMAT_WIDTH 1280
#define ES_DEFAULT_VIDEO_FORMAT_HEIGHT 544
-#define ES_DEFAULT_VIDEO_PTS_OFFSET 20000000
+#define ES_DEFAULT_VIDEO_PTS_OFFSET 33000000
+#define ES_DEFAULT_VIDEO_FPS 30
#define ES_DEFAULT_NUMBER_OF_FEED 2000
+#define USE_EVAS_DISPLAY 0
#ifdef PACKAGE
#undef PACKAGE
{
if (!pParent)
return NULL;
-
+ Evas_Object *pObj = NULL;
Evas *pEvas = evas_object_evas_get(pParent);
- Evas_Object *pObj = evas_object_rectangle_add(pEvas);
+#if USE_EVAS_DISPLAY
+ return evas_object_image_add(pEvas);
+#else
+ pObj = evas_object_rectangle_add(pEvas);
+#endif
if (pObj == NULL)
return NULL;
return pObj;
}
+
static void create_base_gui(appdata_s *ad)
{
/* Enable GLES Backened */
/* elm_win_util_standard_add(PACKAGE, PACKAGE); */
ad->win = create_win(PACKAGE);
ad->rect = create_render_rect(ad->win);
+#if USE_EVAS_DISPLAY
+ evas_object_image_size_set(ad->rect, 500, 500);
+ evas_object_image_fill_set(ad->rect, 0, 0, 500, 500);
+ evas_object_resize(ad->rect, 500, 500);
+
+ elm_win_activate(ad->win);
+ evas_object_show(ad->win);
+#endif
/* This is not supported in 3.0
elm_win_wm_desktop_layout_support_set(ad->win, EINA_TRUE); */
elm_win_autodel_set(ad->win, EINA_TRUE);
return -1;
}
+#if USE_EVAS_DISPLAY
+ ret = player_set_display(ad->player_handle, PLAYER_DISPLAY_TYPE_EVAS, GET_DISPLAY(ad->rect));
+#else
ret = player_set_display(ad->player_handle, PLAYER_DISPLAY_TYPE_OVERLAY, GET_DISPLAY(ad->win));
+#endif
if (ret != PLAYER_ERROR_NONE) {
LOGE("player_set_display failed : 0x%x", ret);
goto FAILED;
media_format_set_video_mime(ad->video_fmt, ES_DEFAULT_VIDEO_FORMAT_TYPE);
media_format_set_video_width(ad->video_fmt, ES_DEFAULT_VIDEO_FORMAT_WIDTH);
media_format_set_video_height(ad->video_fmt, ES_DEFAULT_VIDEO_FORMAT_HEIGHT);
+ media_format_set_video_frame_rate(ad->video_fmt, ES_DEFAULT_VIDEO_FPS);
player_set_media_stream_buffer_max_size(ad->player_handle, PLAYER_STREAM_TYPE_VIDEO, (unsigned long long)3 * 1024 * 1024);
player_set_media_stream_buffer_min_threshold(ad->player_handle, PLAYER_STREAM_TYPE_VIDEO, 50);