#include <player_internal.h>
#include <glib.h>
#include <appcore-efl.h>
-#ifdef HAVE_WAYLAND
#include <Ecore.h>
#include <Ecore_Wayland.h>
-#endif
#define KEY_END "XF86Stop"
-#define ES_DEFAULT_DIR_PATH "/home/owner/content/"
-#define ES_DEFAULT_H264_VIDEO_PATH ES_DEFAULT_DIR_PATH"Simpsons.h264"
+#define ES_DEFAULT_DIR_PATH "/home/owner/"
+#define ES_DEFAULT_H264_VIDEO_PATH ES_DEFAULT_DIR_PATH"test.h264"
#define ES_DEFAULT_VIDEO_FORMAT_TYPE MEDIA_FORMAT_H264_SP
#define ES_DEFAULT_VIDEO_FORMAT_WIDTH 1280
#define ES_DEFAULT_VIDEO_FORMAT_HEIGHT 544
g_print("window size :%d,%d", w, h);
evas_object_resize(eo, w, h);
elm_win_autodel_set(eo, EINA_TRUE);
-#ifdef HAVE_WAYLAND
elm_win_alpha_set(eo, EINA_TRUE);
-#endif
}
return eo;
}
void _video_buffer_status_cb_ex(player_media_stream_buffer_status_e status, unsigned long long bytes, void *user_data)
{
- if (status == PLAYER_MEDIA_STREAM_BUFFER_UNDERRUN) {
+ if (status == PLAYER_MEDIA_STREAM_BUFFER_UNDERRUN)
LOGE("video buffer is underrun state, current level byte = %llu", bytes);
- } else if (status == PLAYER_MEDIA_STREAM_BUFFER_OVERFLOW) {
+ else if (status == PLAYER_MEDIA_STREAM_BUFFER_OVERFLOW)
LOGE("video buffer is overrun state, current level byte = %llu", bytes);
- }
}
void _audio_buffer_status_cb_ex(player_media_stream_buffer_status_e status, unsigned long long bytes, void *user_data)
{
- if (status == PLAYER_MEDIA_STREAM_BUFFER_UNDERRUN) {
+ if (status == PLAYER_MEDIA_STREAM_BUFFER_UNDERRUN)
LOGE("audio buffer is underrun state, current level byte = %llu", bytes);
- } else if (status == PLAYER_MEDIA_STREAM_BUFFER_OVERFLOW) {
+ else if (status == PLAYER_MEDIA_STREAM_BUFFER_OVERFLOW)
LOGE("audio buffer is overrun state, current level byte = %llu", bytes);
- }
}
void _video_seek_data_cb(unsigned long long offset, void *user_data)