Merge branch '0128_tizen20'
[apps/core/preloaded/video-player.git] / include / mp-video-service-ctrl.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 _VIDEO_SERVICE_CTRL_
21 #define  _VIDEO_SERVICE_CTRL_
22
23
24 typedef enum
25 {
26         MP_ERROR_PLAYER_TYPE                                    = 0,
27         MP_NONE_VIEW_TYPE,
28         MP_VIDEO_PLAYER,
29         MP_VIDEO_PLAYER_SIMPLE,
30         MP_VIDEO_PLAYER_EMAIL,
31         MP_VIDEO_PLAYER_MMS,
32         MP_VIDEO_PLAYER_GALLERY,
33         MP_STREAMING_PLAYER,
34         MP_MAX_PLAYER_TYPE,
35 }MpPlayerViewType;
36
37
38 void MpVideoServiceCtrlReset(void);
39 int MpVideoServiceCtrlInitServiceParser(void* pAppServiceHandle, char** szMediaUri);
40
41
42 int MpVideoServiceCtrlGetLatestTime(void);
43 int MpVideoServiceCtrlGetPlayerTypeWithoutLog(void);
44 int MpVideoServiceCtrlGetPlayerType(void);
45 void MpVideoServiceCtrlSetPlayerType(int nSetPlayerType);
46 int MpVideoServiceCtrlGetPrevPlayerType(void);
47 void MpVideoServiceCtrlSetPrevPlayerType(int nSetPlayerType);
48 char* MpVideoServiceCtrlGetCookieForStreaming(void);
49
50 #endif //_VIDEO_SERVICE_CTRL_