summaryrefslogtreecommitdiff
path: root/include/util
diff options
context:
space:
mode:
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