From a58229cc16cdb9b5e083fb8e6f1e6250859c6af0 Mon Sep 17 00:00:00 2001 From: Minkyu Kang Date: Fri, 3 Jul 2015 19:25:22 +0900 Subject: viewer: adds playermgr and support playing video Werror was disabled due to deprecated compiler warning from sound manager module Change-Id: Ia798d8b4a2900c8b8aa0c71efcf0641c2477b025 Signed-off-by: Minkyu Kang --- include/util/playermgr.h | 38 ++++++++++++++++++++++++++++++++++++++ include/view/viewer.h | 1 + 2 files changed, 39 insertions(+) create mode 100644 include/util/playermgr.h (limited to 'include') diff --git a/include/util/playermgr.h b/include/util/playermgr.h new file mode 100644 index 0000000..7ba5831 --- /dev/null +++ b/include/util/playermgr.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. +*/ + +#ifndef __AIR_MEDIAHUB_PLAYERMGR_H__ +#define __AIR_MEDIAHUB_PLAYERMGR_H__ + +struct playermgr; + +struct playermgr *playermgr_create(Evas_Object *win); +void playermgr_destroy(struct playermgr *m); + +bool playermgr_play(struct playermgr *m, const char *path); +void playermgr_stop(struct playermgr *m); +bool playermgr_resume(struct playermgr *m); +bool playermgr_pause(struct playermgr *m); + +int playermgr_get_duration(struct playermgr *m); +int playermgr_get_position(struct playermgr *m); +bool playermgr_set_position(struct playermgr *m, int ms, + player_seek_completed_cb cb, void *data); +void playermgr_get_state(struct playermgr *m, player_state_e *state); +bool playermgr_set_completed_cb(struct playermgr *m, + player_completed_cb cb, void *data); + +#endif diff --git a/include/view/viewer.h b/include/view/viewer.h index 1babe1c..b7622f2 100644 --- a/include/view/viewer.h +++ b/include/view/viewer.h @@ -24,6 +24,7 @@ #define GRP_VIEWER_VIEW "group.viewer_view" /* part */ +#define PART_VIEWER_BG "part.viewer_bg" #define PART_VIEWER_CONTENT "part.viewer_content" #define PART_VIEWER_TITLE "part.viewer_title" #define PART_VIEWER_DATE "part.viewer_date" -- cgit v1.2.3