2 * Copyright (c) [2012] Samsung Electronics Co., Ltd.
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
8 * http://floralicense.org/license/
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.
18 #ifndef __VIDEO_PLAYER__
19 #define __VIDEO_PLAYER__
24 #include <Elementary.h>
27 #include "mp-video-value-define.h"
28 #include "mp-video-type-define.h"
45 typedef struct _VideoAppData VideoAppData;
50 void (*VideoAppCtrlStart) (VideoAppData* pAppData);
51 void (*VideoAppCtrlStop) (VideoAppData* pAppData);
52 void (*VideoAppCtrlPause) (VideoAppData* pAppData);
53 void (*VideoAppCtrlResume) (VideoAppData* pAppData);
54 void (*VideoAppCtrlStopByAppPause) (VideoAppData* pAppData);
55 void (*VideoAppCtrlStartByAppResume) (VideoAppData* pAppData);
56 void (*VideoAppCtrlFFDown) (VideoAppData* pAppData);
57 void (*VideoAppCtrlRewDown) (VideoAppData* pAppData);
58 void (*VideoAppCtrlFFUp) (VideoAppData* pAppData);
59 void (*VideoAppCtrlRewUp) (VideoAppData* pAppData);
60 void (*VideoAppCtrlSpeedReset) (VideoAppData* pAppData);
61 void (*VideoAppCtrlSpeedFF) (VideoAppData* pAppData);
62 void (*VideoAppCtrlSpeedRew) (VideoAppData* pAppData);
63 void (*VideoAppCtrlRotateScreen) (VideoAppData *pAppData, int nRotateState);
64 void (*VideoAppCtrlGetPosition) (VideoAppData* pAppData);
65 void (*VideoAppCtrlSetPosition) (VideoAppData* pAppData);
66 void (*VideoAppCtrlSetSubtitlePosition) (VideoAppData* pAppData);
67 void (*VideoAppCtrlHideLayout) (VideoAppData* pAppData);
68 void (*VideoAppCtrlShowLayout) (VideoAppData* pAppData);
69 void (*VideoAppCtrlHideFinish) (VideoAppData* pAppData);
70 void (*VideoAppCtrlShowFinish) (VideoAppData* pAppData);
71 void (*VideoAppCtrlGetVideoResolution) (VideoAppData* pAppData);
72 void (*VideoAppCtrlReqDurationTime) (VideoAppData* pAppData);
73 void (*VideoAppCtrlChangeResolution) (VideoAppData* pAppData);
74 void (*VideoAppCtrlBeginOfStream) (VideoAppData* pAppData);
75 void (*VideoAppCtrlEndOfStream) (VideoAppData* pAppData);
76 void (*VideoAppCtrlExit) (VideoAppData* pAppData);
77 void (*VideoAppCtrlStartStreaming) (VideoAppData* pAppData);
78 void (*VideoAppCtrlReLaunching) (VideoAppData* pAppData);
79 void (*VideoAppCtrlGetBufferingPosition)(VideoAppData* pAppData);
82 void (*VideoAppCtrlShowVolume) (VideoAppData *pAppData);
83 void (*VideoAppCtrlHideVolume) (VideoAppData *pAppData);
89 Evas_Object* pMainWindow;
94 int nSubtitleDuration;
95 int nBufferingPosition;
98 int nVideoWidthResolution;
99 int nVideoHeightResolution;
105 char *szNextMediaUri;
107 MpPlayerState nPrePlayerState;
108 MpPlayerState nCurPlayerState;
109 VideoAppCtrlFunc VideoAppCtrlCallbackFunc;
112 MpPlayerState nSeekPlayerState;
114 char *szProxyAddress;
121 #endif //__VIDEO_PLAYER__