16 */ |
16 */ |
17 |
17 |
18 #ifndef XAPLAYITF_H |
18 #ifndef XAPLAYITF_H |
19 #define XAPLAYITF_H |
19 #define XAPLAYITF_H |
20 |
20 |
21 #include "openmaxalwrapper.h" |
21 #include "xaadptbasectx.h" |
22 #include "xaglobals.h" |
|
23 #ifdef _GSTREAMER_BACKEND_ |
|
24 #include "XAAdaptationContextBase.h" |
|
25 #endif |
|
26 #include "xaadaptationcontextbasemmf.h" |
|
27 #include "xamediaplayer.h" |
22 #include "xamediaplayer.h" |
28 |
23 |
29 |
24 |
30 /** MACROS **/ |
25 /** MACROS **/ |
31 #define NO_POSITION XA_TIME_UNKNOWN |
26 #define NO_POSITION XA_TIME_UNKNOWN |
45 /* pointer to self */ |
40 /* pointer to self */ |
46 struct XAPlayItfImpl_* self; |
41 struct XAPlayItfImpl_* self; |
47 |
42 |
48 /* variables */ |
43 /* variables */ |
49 XAPlayItf cbPtrToSelf; |
44 XAPlayItf cbPtrToSelf; |
|
45 /* TODO : This is no longer needed we need to get state from XAMediaPlayerImpl |
|
46 * Delete this.*/ |
50 XAuint32 playbackState; |
47 XAuint32 playbackState; |
|
48 |
51 xaPlayCallback callback; |
49 xaPlayCallback callback; |
52 void *cbcontext; |
50 void *cbcontext; |
53 XAuint32 eventFlags; |
51 XAuint32 eventFlags; |
54 XAmillisecond markerPosition; |
52 XAmillisecond markerPosition; |
55 XAmillisecond positionUpdatePeriod; |
53 XAmillisecond positionUpdatePeriod; |
56 XAboolean positionupdateOn; |
54 XAboolean positionupdateOn; |
57 XAmillisecond lastPosition; |
55 XAmillisecond lastPosition; |
58 XAboolean isMarkerPosCbSend; |
56 XAboolean isMarkerPosCbSend; |
59 |
57 |
60 #ifdef _GSTREAMER_BACKEND_ |
|
61 /*Adaptation variables*/ |
58 /*Adaptation variables*/ |
|
59 /* TODO : This is no longer needed since we have access to XAMediaPlayerImpl |
|
60 * Delete this.*/ |
62 XAAdaptationBaseCtx *adapCtx; |
61 XAAdaptationBaseCtx *adapCtx; |
63 #endif |
62 |
64 XAAdaptationBaseMMFCtx *adaptCtxMMF; |
63 XAMediaPlayerImpl* pObjImpl; |
65 XAboolean isMMFPlayback; |
|
66 |
64 |
67 } XAPlayItfImpl; |
65 } XAPlayItfImpl; |
68 |
66 |
69 /** METHODS **/ |
67 /** METHODS **/ |
70 |
68 |
96 |
94 |
97 |
95 |
98 /* |
96 /* |
99 * implementation-specific methods |
97 * implementation-specific methods |
100 */ |
98 */ |
101 XAPlayItfImpl* XAPlayItfImpl_Create( |
99 XAPlayItfImpl* XAPlayItfImpl_Create( XAMediaPlayerImpl *impl ); |
102 #ifdef _GSTREAMER_BACKEND_ |
|
103 XAAdaptationBaseCtx *adapCtx, |
|
104 #endif |
|
105 XAAdaptationBaseMMFCtx *adaptationCtxMMF ); |
|
106 #ifdef _GSTREAMER_BACKEND_ |
|
107 void XAPlayItfImpl_AdaptCb( void *pHandlerCtx, XAAdaptEvent *event ); |
100 void XAPlayItfImpl_AdaptCb( void *pHandlerCtx, XAAdaptEvent *event ); |
108 #endif |
|
109 XAresult XAPlayItfImpl_DeterminePlaybackEngine(XAPlayItf self, XADataLocator_URI *uri); |
|
110 void XAPlayItfImpl_Free(XAPlayItfImpl* self); |
101 void XAPlayItfImpl_Free(XAPlayItfImpl* self); |
111 |
102 |
112 |
103 |
113 #endif /* XAPLAYITF_H */ |
104 #endif /* XAPLAYITF_H */ |