Download OpenMAX Application Layer 1.1 Specification

Transcript
GetPlayState
XAresult (*GetPlayState) (
XAPlayItf self,
XAuint32 * pState
);
Description
Gets the player’s current play state.
Pre-conditions
None.
Parameters
self
[in]
Interface self-reference.
pState
[out]
Pointer to a location to receive the current play state of the player. This must
be non-NULL.
Return value
Comments
The return value can be one of the following:
XA_RESULT_SUCCESS
XA_RESULT_PARAMETER_INVALID
None.
GetDuration
XAresult (*GetDuration) (
XAPlayItf self,
XAmillisecond * pMsec
);
Description
Gets the duration of the current content, in milliseconds.
Pre-conditions
None.
Parameters
self
[in]
Interface self-reference.
pMsec
[out]
Pointer to a location to receive the number of milliseconds corresponding to
the total duration of this current content. If the duration is unknown, this
value shall be XA_TIME_UNKNOWN. This must be non-NULL.
Return value
Comments
The return value can be one of the following:
XA_RESULT_SUCCESS
XA_RESULT_PARAMETER_INVALID
None.
249