equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef XAPLAYITFADAPTATION_H |
|
19 #define XAPLAYITFADAPTATION_H |
|
20 |
|
21 #include "XAAdaptationContextBase.h" |
|
22 #include "XADebug.h" |
|
23 |
|
24 #ifdef _DEBUG |
|
25 /*parse state names for debug prints*/ |
|
26 static const char* playstatenames[3] = |
|
27 { |
|
28 "XA_PLAYSTATE_STOPPED", |
|
29 "XA_PLAYSTATE_PAUSED", |
|
30 "XA_PLAYSTATE_PLAYING" |
|
31 }; |
|
32 #define PLAYSTATENAME(i) (const char*)((i>0&&i<4)?playstatenames[i-1]:"INVALID") |
|
33 #endif /*_DEBUG*/ |
|
34 |
|
35 |
|
36 /* FUNCTIONS */ |
|
37 |
|
38 XAresult XAPlayItfAdapt_SetPlayState(XAAdaptationBaseCtx *bCtx, XAuint32 state); |
|
39 XAresult XAPlayItfAdapt_GetDuration(XAAdaptationBaseCtx *bCtx, XAmillisecond *pMsec); |
|
40 XAresult XAPlayItfAdapt_GetPosition(XAAdaptationBaseCtx *bCtx, XAmillisecond *pMsec); |
|
41 XAresult XAPlayItfAdapt_EnablePositionTracking(XAAdaptationBaseCtx *bCtx, XAboolean enable); |
|
42 |
|
43 |
|
44 #endif /* XAPLAYITFADAPTATION_H */ |
|