2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __TIZEN_MEDIA_PLAYER_PRIVATE_H__
18 #define __TIZEN_MEDIA_PLAYER_PRIVATE_H__
20 #include <mm_player.h>
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
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];
49 player_display_type_e display_type;
51 bool is_set_pixmap_cb;
53 bool is_display_visible;
54 bool is_progressive_download;
55 pthread_t prepare_async_thread;
62 #endif //__TIZEN_MEDIA_PLAYER_PRIVATE_H__