summaryrefslogtreecommitdiff
path: root/include/util
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2015-07-03 19:25:22 +0900
committerMinkyu Kang <mk7.kang@samsung.com>2015-07-03 21:27:57 +0900
commita58229cc16cdb9b5e083fb8e6f1e6250859c6af0 (patch)
treeea9ccca23e592fe4d1ef0ab0cffb02b8c00df950 /include/util
parent7216e7a98a386f0a07ea0b593144668b3f2ba35e (diff)
downloadair_mediahub-a58229cc16cdb9b5e083fb8e6f1e6250859c6af0.tar.gz
air_mediahub-a58229cc16cdb9b5e083fb8e6f1e6250859c6af0.tar.bz2
air_mediahub-a58229cc16cdb9b5e083fb8e6f1e6250859c6af0.zip
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 <mk7.kang@samsung.com>
Diffstat (limited to 'include/util')
-rw-r--r--include/util/playermgr.h38
1 files changed, 38 insertions, 0 deletions
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