emotion_object_init(em, NULL);
efl_event_callback_add
- (em, EMOTION_OBJECT_EVENT_PLAYBACK_STARTED, _playback_started_cb, NULL);
+ (em, EFL_CANVAS_VIDEO_EVENT_PLAYBACK_START, _playback_started_cb, NULL);
emotion_object_file_set(em, filename);
emotion_object_init(em, "gstreamer1");
- efl_event_callback_add(em, EMOTION_OBJECT_EVENT_PLAYBACK_STARTED, _playback_started_cb, NULL);
+ efl_event_callback_add(em, EFL_CANVAS_VIDEO_EVENT_PLAYBACK_START, _playback_started_cb, NULL);
return em;
}
}
EFL_CALLBACKS_ARRAY_DEFINE(emotion_object_example_callbacks,
- { EMOTION_OBJECT_EVENT_FRAME_DECODE, _frame_decode_cb },
- { EMOTION_OBJECT_EVENT_LENGTH_CHANGE, _length_change_cb },
- { EMOTION_OBJECT_EVENT_POSITION_UPDATE, _position_update_cb },
- { EMOTION_OBJECT_EVENT_PROGRESS_CHANGE, _progress_change_cb },
- { EMOTION_OBJECT_EVENT_FRAME_RESIZE, _frame_resize_cb });
+ { EFL_CANVAS_VIDEO_EVENT_FRAME_DECODE, _frame_decode_cb },
+ { EFL_CANVAS_VIDEO_EVENT_LENGTH_CHANGE, _length_change_cb },
+ { EFL_CANVAS_VIDEO_EVENT_POSITION_CHANGE, _position_update_cb },
+ { EFL_CANVAS_VIDEO_EVENT_PROGRESS_CHANGE, _progress_change_cb },
+ { EFL_CANVAS_VIDEO_EVENT_FRAME_RESIZE, _frame_resize_cb });
int
main(int argc, const char *argv[])
emotion_object_init(em, "generic");
efl_event_callback_add
- (em, EMOTION_OBJECT_EVENT_PLAYBACK_STARTED, _playback_started_cb, NULL);
+ (em, EFL_CANVAS_VIDEO_EVENT_PLAYBACK_START, _playback_started_cb, NULL);
efl_event_callback_add
- (em, EMOTION_OBJECT_EVENT_PLAYBACK_FINISHED, _playback_stopped_cb, NULL);
+ (em, EFL_CANVAS_VIDEO_EVENT_PLAYBACK_STOP, _playback_stopped_cb, NULL);
return em;
}
}
EFL_CALLBACKS_ARRAY_DEFINE(emotion_object_example_callbacks,
- { EMOTION_OBJECT_EVENT_FRAME_DECODE, _frame_decode_cb },
- { EMOTION_OBJECT_EVENT_LENGTH_CHANGE, _length_change_cb },
- { EMOTION_OBJECT_EVENT_POSITION_UPDATE, _position_update_cb },
- { EMOTION_OBJECT_EVENT_PROGRESS_CHANGE, _progress_change_cb });
+ { EFL_CANVAS_VIDEO_EVENT_FRAME_DECODE, _frame_decode_cb },
+ { EFL_CANVAS_VIDEO_EVENT_LENGTH_CHANGE, _length_change_cb },
+ { EFL_CANVAS_VIDEO_EVENT_POSITION_CHANGE, _position_update_cb },
+ { EFL_CANVAS_VIDEO_EVENT_PROGRESS_CHANGE, _progress_change_cb });
int
main(int argc, const char *argv[])
emotion_object_video_subtitle_file_set(em, subtitle_filename);
efl_event_callback_add
- (em, EMOTION_OBJECT_EVENT_PLAYBACK_STARTED, _playback_started_cb, NULL);
+ (em, EFL_CANVAS_VIDEO_EVENT_PLAYBACK_START, _playback_started_cb, NULL);
emotion_object_file_set(em, filename);
_position_update_cb(void *data EINA_UNUSED, const Efl_Event *ev)
{
printf(">>> Emotion object first position update.\n");
- efl_event_callback_del(ev->object, EMOTION_OBJECT_EVENT_POSITION_UPDATE, _position_update_cb, NULL);
+ efl_event_callback_del(ev->object, EFL_CANVAS_VIDEO_EVENT_POSITION_CHANGE, _position_update_cb, NULL);
_display_info(ev->object);
}
_frame_decode_cb(void *data EINA_UNUSED, const Efl_Event *ev)
{
printf(">>> Emotion object first frame decode.\n");
- efl_event_callback_del(ev->object, EMOTION_OBJECT_EVENT_FRAME_DECODE, _frame_decode_cb, NULL);
+ efl_event_callback_del(ev->object, EFL_CANVAS_VIDEO_EVENT_FRAME_DECODE, _frame_decode_cb, NULL);
_display_info(ev->object);
}
}
EFL_CALLBACKS_ARRAY_DEFINE(emotion_object_example_callbacks,
- { EMOTION_OBJECT_EVENT_PLAYBACK_STARTED, _playback_started_cb },
- { EMOTION_OBJECT_EVENT_PLAYBACK_FINISHED, _playback_finished_cb },
- { EMOTION_OBJECT_EVENT_OPEN_DONE, _open_done_cb },
- { EMOTION_OBJECT_EVENT_POSITION_UPDATE, _position_update_cb },
- { EMOTION_OBJECT_EVENT_FRAME_DECODE, _frame_decode_cb },
- { EMOTION_OBJECT_EVENT_DECODE_STOP, _decode_stop_cb },
- { EMOTION_OBJECT_EVENT_FRAME_RESIZE, _frame_resize_cb });
+ { EFL_CANVAS_VIDEO_EVENT_PLAYBACK_START, _playback_started_cb },
+ { EFL_CANVAS_VIDEO_EVENT_PLAYBACK_STOP, _playback_finished_cb },
+ { EFL_CANVAS_VIDEO_EVENT_OPEN_DONE, _open_done_cb },
+ { EFL_CANVAS_VIDEO_EVENT_POSITION_CHANGE, _position_update_cb },
+ { EFL_CANVAS_VIDEO_EVENT_FRAME_DECODE, _frame_decode_cb },
+ { EFL_CANVAS_VIDEO_EVENT_PLAYBACK_STOP, _decode_stop_cb },
+ { EFL_CANVAS_VIDEO_EVENT_FRAME_RESIZE, _frame_resize_cb });
int
main(int argc, const char *argv[])