Merge branch '0128_tizen20'
[apps/core/preloaded/video-player.git] / include / mp-video-ctrl-mgr.h
1 /*
2  * To apply the Flora License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
3  * 
4  *    Copyright [2012] [JongDong Lee <jongdong.lee@samsung.com>, ChangSun Lee <cs78.lee@samsung.com>]
5  * 
6  *    Licensed under the Flora License, Version 1.0 (the "License");
7  *    you may not use this file except in compliance with the License.
8  *    You may obtain a copy of the License at
9  * 
10  *        http://www.tizenopensource.org/license
11  * 
12  *    Unless required by applicable law or agreed to in writing, software
13  *    distributed under the License is distributed on an "AS IS" BASIS,
14  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *    See the License for the specific language governing permissions and
16  *    limitations under the License.
17  */
18
19
20 #ifndef _MP_VIDEO_CTRL_MGR_H_
21 #define _MP_VIDEO_CTRL_MGR_H_
22
23
24 bool    MpVideoCtrlMgrMediaCreate(char *szMediaURI, void *pOverlayXid, void *pEvasSinkID, char* szSubtitleUri, void *pUserData);
25 bool    MpVideoCtrlMgrMediaRealize(void);
26 bool    MpVideoCtrlMgrMediaRealizeAsync(void *pReailzeCb, void *pUserData);
27 void    MpVideoCtrlMgrMediaDestroy(void* pUserData);
28 bool    MpVideoCtrlMgrMediaPlay(void* pUserData);
29 void    MpVideoCtrlMgrMediaStop(void* pUserData);
30 void    MpVideoCtrlMgrMediaPause(void* pUserData);
31 void    MpVideoCtrlMgrMediaResume(void* pUserData);
32 void    MpVideoCtrlMgrSetPlayerCallback(void *PlayerCompletedCb, void *PlayerInterruptedCb, void *PlayerErrorCb, void *PlayerBufferingCb, void *PlayerSubtitleCb, void *pUserData);
33 void    MpVideoCtrlMgrSetOverlayXid(void* pXid);
34 void    MpVideoCtrlMgrSetPosition(int nSetPosition, void *pSeekCb, void *pUserData);
35 void    MpVideoCtrlMgrSetSubtitlePosition(int nSetPosition);
36 int             MpVideoCtrlMgrGetPosition(void);
37 int             MpVideoCtrlMgrGetDuration(void);
38 void    MpVideoCtrlMgrResetPlaySpeed(void* pUserData);
39 void    MpVideoCtrlMgrSetPlaySpeedUp(void* pUserData);
40 void    MpVideoCtrlMgrSetPlaySpeedDown(void* pUserData);
41 int             MpVideoCtrlMgrGetVideoWidthResolution(void);
42 int             MpVideoCtrlMgrGetVideoHeightResolution(void);
43 void    MpVideoCtrlMgrSetRatioVideoScreen(void* pUserData, int nRatioScreenSize);
44 void    MpVideoCtrlMgrRotateVideoScreen(int nVideoRotateValue);
45 void    MpVideoCtrlMgrSetMute(bool bMuteEnable);
46 bool    MpVideoCtrlMgrGetMuteState(void);
47 int     MpVideoCtrlMgrGetBufferingPosition(void);
48 bool    MpVideoCtrlMgrIsExistPlayerHandle(void);
49 bool    MpVideoCtrlMgrIsOnlyAudio(void);
50 bool    MpVideoCtrlMgrSetScaling(bool bScale);
51 int             MpVideoCtrlMgrGetErrorType(int nErrorVal);
52 void    MpVideoCtrlMgrSetMute(bool bState);
53 int MpVideoCtrlMgrGetClosedCaptionCount(void);
54
55
56 #endif