Commit 6fa63363 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Video Player: implement a stop function

parent fd168b40
......@@ -201,12 +201,18 @@ video_player_start(interface_view *view, const char* file_path)
LOGE("playback_service_start: %s", p_mi->psz_path);
playback_service_set_context(view->p_view_sys->p_ps, PLAYLIST_CONTEXT_VIDEO);
playback_service_list_clear(view->p_view_sys->p_ps);
playback_service_list_append(view->p_view_sys->p_ps, p_mi);
playback_service_start(view->p_view_sys->p_ps, 0);
return true;
}
static void
video_player_stop(view_sys *p_sys)
{
playback_service_list_clear(p_sys->p_ps);
playback_service_stop(p_sys->p_ps);
}
interface_view*
create_video_player(playback_service *p_ps, Evas_Object *parent)
{
......@@ -290,6 +296,8 @@ create_video_player(playback_service *p_ps, Evas_Object *parent)
evas_object_smart_callback_add(p_sys->progress_slider, "changed", _on_slider_changed_cb, p_sys);
view->view = layout;
view->pf_stop = video_player_stop;
return view;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment