Tizen 2.0 Release
[profile/ivi/org.tizen.video-player.git] / include / mp-video-ctrl-mgr.h
1 /*
2  * Copyright (c) [2012] Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Flora License, Version 1.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17
18 #ifndef _MP_VIDEO_CTRL_MGR_H_
19 #define _MP_VIDEO_CTRL_MGR_H_
20
21
22 bool    MpVideoCtrlMgrMediaCreate(char *szMediaURI, void *pOverlayXid, void *pEvasSinkID, char* szSubtitleUri, void *pUserData);
23 bool    MpVideoCtrlMgrMediaRealize(void);
24 bool    MpVideoCtrlMgrMediaRealizeAsync(void *pReailzeCb, void *pUserData);
25 void    MpVideoCtrlMgrMediaDestroy(void* pUserData);
26 bool    MpVideoCtrlMgrMediaPlay(void* pUserData);
27 void    MpVideoCtrlMgrMediaStop(void* pUserData);
28 void    MpVideoCtrlMgrMediaPause(void* pUserData);
29 void    MpVideoCtrlMgrMediaResume(void* pUserData);
30 void    MpVideoCtrlMgrSetPlayerCallback(void *PlayerCompletedCb, void *PlayerInterruptedCb, void *PlayerErrorCb, void *PlayerBufferingCb, void *PlayerSubtitleCb, void *pUserData);
31 void    MpVideoCtrlMgrSetOverlayXid(void* pXid);
32 void    MpVideoCtrlMgrSetPosition(int nSetPosition, void *pSeekCb, void *pUserData);
33 void    MpVideoCtrlMgrSetSubtitlePosition(int nSetPosition);
34 int             MpVideoCtrlMgrGetPosition(void);
35 int             MpVideoCtrlMgrGetDuration(void);
36 void    MpVideoCtrlMgrResetPlaySpeed(void* pUserData);
37 void    MpVideoCtrlMgrSetPlaySpeedUp(void* pUserData);
38 void    MpVideoCtrlMgrSetPlaySpeedDown(void* pUserData);
39 int             MpVideoCtrlMgrGetVideoWidthResolution(void);
40 int             MpVideoCtrlMgrGetVideoHeightResolution(void);
41 void    MpVideoCtrlMgrSetRatioVideoScreen(void* pUserData, int nRatioScreenSize);
42 void    MpVideoCtrlMgrRotateVideoScreen(int nVideoRotateValue);
43 void    MpVideoCtrlMgrSetMute(bool bMuteEnable);
44 bool    MpVideoCtrlMgrGetMuteState(void);
45 int     MpVideoCtrlMgrGetBufferingPosition(void);
46 bool    MpVideoCtrlMgrIsExistPlayerHandle(void);
47 bool    MpVideoCtrlMgrIsOnlyAudio(void);
48 bool    MpVideoCtrlMgrSetScaling(bool bScale);
49 int             MpVideoCtrlMgrGetErrorType(int nErrorVal);
50 void    MpVideoCtrlMgrSetMute(bool bState);
51 int MpVideoCtrlMgrGetClosedCaptionCount(void);
52
53
54 #endif