add PLAYER_ERROR_DRM_NOT_PERMITTED
[platform/core/api/player.git] / include / player_private.h
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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 #ifndef __TIZEN_MEDIA_PLAYER_PRIVATE_H__
18 #define __TIZEN_MEDIA_PLAYER_PRIVATE_H__
19 #include <player.h>
20 #include <mm_player.h>
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 typedef enum {
27         _PLAYER_EVENT_TYPE_PREPARE,
28         _PLAYER_EVENT_TYPE_COMPLETE,
29         _PLAYER_EVENT_TYPE_INTERRUPT,
30         _PLAYER_EVENT_TYPE_ERROR,
31         _PLAYER_EVENT_TYPE_BUFFERING,
32         _PLAYER_EVENT_TYPE_SUBTITLE,
33         _PLAYER_EVENT_TYPE_CAPTURE,
34         _PLAYER_EVENT_TYPE_SEEK,
35         _PLAYER_EVENT_TYPE_VIDEO_FRAME,
36         _PLAYER_EVENT_TYPE_AUDIO_FRAME,
37         _PLAYER_EVENT_TYPE_VIDEO_FRAME_RENDER_ERROR,
38         _PLAYER_EVENT_TYPE_PD,
39         _PLAYER_SUPPORTED_AUDIO_EFFECT_TYPE,
40         _PLAYER_SUPPORTED_AUDIO_EFFECT_PRESET,
41         _PLAYER_EVENT_TYPE_NUM
42 }_player_event_e;
43
44 typedef struct _player_s{
45         MMHandleType mm_handle;
46         const void* user_cb[_PLAYER_EVENT_TYPE_NUM];
47         void* user_data[_PLAYER_EVENT_TYPE_NUM];
48         void* display_handle;
49         player_display_type_e display_type;
50         int state;
51         bool is_set_pixmap_cb;
52         bool is_stopped;
53         bool is_display_visible;
54         bool is_progressive_download;
55         pthread_t prepare_async_thread;
56 } player_s;
57
58 #ifdef __cplusplus
59 }
60 #endif
61
62 #endif //__TIZEN_MEDIA_PLAYER_PRIVATE_H__
63
64
65