Tizen 2.1 base
[apps/core/preloaded/video-player.git] / include / mp-video-type-define.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 _VIDEO_TYPE_DEFINE_
19 #define  _VIDEO_TYPE_DEFINE_
20
21
22 typedef enum
23 {
24         VIDEO_ROTATE_UNKNOWN                            = 0,
25         VIDEO_ROTATE_PORTRAIT_NORMAL,
26         VIDEO_ROTATE_PORTRAIT_REVERSE,
27         VIDEO_ROTATE_LANDSCAPE_NORMAL,
28         VIDEO_ROTATE_LANDSCAPE_REVERSE,
29 }MpVideoRotateType;
30
31 typedef enum
32 {
33         MP_HTTP_STREAMING                                       = 0,
34         MP_RTSP_STREAMING,
35 }MpProtocolType;
36
37 typedef enum
38 {
39         MP_DISPLAY_METHOD_LETTER_BOX            = 0,
40 }MpDisplayMethod;
41
42 typedef enum
43 {
44         MP_SOUND_PATH_SPEAKER                           = 0,
45         MP_SOUND_PATH_EARJACK,
46         MP_SOUND_PATH_BLUETOOTH,
47         MP_SOUND_PATH_MAX,
48 }MpSoundPathType;
49
50 typedef enum
51 {
52         MP_PLAYER_ERROR_NONE                    = 0,    // Successful
53         MP_PLAYER_ERROR_OUT_OF_MEMORY,                  // Out of memory
54         MP_PLAYER_ERROR_INVALID_PARAMETER,              // Invalid parameter
55         MP_PLAYER_ERROR_NO_SUCH_FILE,                   // No such file or directory 
56         MP_PLAYER_ERROR_INVALID_OPERATION,              // Invalid operation
57         MP_PLAYER_ERROR_SEEK_FAILED,                    // Seek operation failure
58         MP_PLAYER_ERROR_INVALID_STATE,                  // Invalid state
59         MP_PLAYER_ERROR_NOT_SUPPORTED_FILE,             // Not supported file format
60         MP_PLAYER_ERROR_INVALID_URI,                    // Invalid URI
61         MP_PLAYER_ERROR_SOUND_POLICY,                   // Sound policy error
62         MP_PLAYER_ERROR_CONNECTION_FAILED,              // Streaming connection failed 
63         MP_PLAYER_ERROR_VIDEO_CAPTURE_FAILED,   // Video capture failure 
64         MP_PLAYER_ERROR_UNKNOWN_ERROR,                  // unknown error.
65 }MpPlayerErrorType;
66
67 typedef enum
68 {
69         MP_PLAYER_INTERRUPTED_COMPLETED  = 0,           // Interrupt completed
70         MP_PLAYER_INTERRUPTED_BY_OTHER_APP,                     // Interrupted by another application
71         MP_PLAYER_INTERRUPTED_BY_CALL,                          // Interrupted by incoming call
72         MP_PLAYER_INTERRUPTED_BY_EARJACK_UNPLUG,        // Interrupted by unplugging headphone
73         MP_PLAYER_INTERRUPTED_BY_RESOURCE_CONFLICT,     // Interrupted by resource conflict
74         MP_PLAYER_INTERRUPTED_BY_ALARM,                         // Interrupted by alarm
75 }MpPlayerInterrupteType;
76
77
78 typedef enum
79 {
80         MP_PLAYER_STATE_WAIT_FOR_RESUME         = -3,
81         MP_PLAYER_STATE_WAIT_FOR_PLAY           = -2,
82         MP_PLAYER_STATE_WAIT_FOR_RESPONSE       = -1,
83         MP_PLAYER_STATE_CLEAR                           = 0,
84         MP_PLAYER_STATE_PLAY,
85         MP_PLAYER_STATE_PAUSE,
86         MP_PLAYER_STATE_RESUME,
87         MP_PLAYER_STATE_STOP,
88         MP_PLAYER_STATE_PAUSE_BEFORE_PLAY,
89         MP_PLAYER_STATE_MAX
90 }MpPlayerState;
91
92
93 typedef enum
94 {
95         MP_PLAYING_SPEED_NORMAL         = 1,
96         MP_PLAYING_SPEED_2X                     = 2,
97         MP_PLAYING_SPEED_3X                     = 3,
98         MP_PLAYING_SPEED_4X                     = 4,
99         MP_PLAYING_SPEED_5X                     = 5,
100         MP_PLAYING_SPEED_MAX            = MP_PLAYING_SPEED_5X,
101 }MpVideoPlayingSpeedType;
102
103
104 typedef enum
105 {
106         MP_SUBTITLE_TYPE_SUB                            = 0,
107         MP_SUBTITLE_TYPE_SRT,
108         MP_SUBTITLE_TYPE_SMI,
109         MP_SUBTITLE_TYPE_MAX,
110 }MpSubTitleType;
111
112
113 typedef enum
114 {
115         MP_NETWORK_CLOSE                                        = 0,
116         MP_NETWORK_ON,
117         MP_NETWORK_MAX,
118 }MpNetworkConfig;
119
120
121 typedef enum
122 {
123         MP_NETWORK_TYPE_OFF                                     = 0,
124         MP_NETWORK_TYPE_CELLULAR,
125         MP_NETWORK_TYPE_WIFI,
126         MP_NETWORK_TYPE_MAX,
127 }MpNetworkType;
128
129
130 typedef enum
131 {
132         MP_NETWORK_WIFI_OFF                                     = 0,
133         MP_NETWORK_WIFI_NOT_CONNECTED,
134         MP_NETWORK_WIFI_CONNECTED,
135         MP_NETWORK_WIFI_MAX,
136 }MpNetworkWifiState;
137
138
139 typedef enum
140 {
141         MP_NETWORK_CELLULAR_ON                          = 0,
142         MP_NETWORK_CELLULAR_3G_OPTION_OFF,
143         MP_NETWORK_CELLULAR_ROAMING_OFF,
144         MP_NETWORK_CELLULAR_FLIGHT_MODE,
145         MP_NETWORK_CELLULAR_NO_SERVICE,
146         MP_NETWORK_CELLULAR_MAX,
147 }MpNetworkCellularState;
148
149 typedef enum
150 {
151         MP_FILE_STREAM_TYPE_NOTHING                     = 0,
152         MP_FILE_STREAM_TYPE_VIDEO_AUDIO,
153         MP_FILE_STREAM_TYPE_AUDIO,
154         MP_FILE_STREAM_TYPE_VIDEO,
155         MP_FILE_STREAM_TYPE_MAX,
156 }MpVideoFileStreamType;
157
158 typedef enum
159 {
160         MP_OPTION_TYPE_LOCAL = 0,
161         MP_OPTION_TYPE_MYFILE,
162         MP_OPTION_TYPE_EMAIL,
163         MP_OPTION_TYPE_WEB,
164         MP_OPTION_TYPE_MESSAGE,
165         MP_OPTION_TYPE_ALLSHARE,
166         MP_OPTION_TYPE_MAX,
167 }MpOptionMenuType;
168
169 #endif //_VIDEO_TYPE_DEFINE_