//
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description: 
//
//


[StifSettings]
CheckHeapBalance=on
[EndStifSettings]

[Test]
title 11.1 PlayItf GetInterafcePlayItfFailure
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
allownextresult XA_RESULT_PRECONDITIONS_VIOLATED
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.2 PlayItf GetInterafcePlayItf
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.3 PlayItf SetStatePlayStop
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 5000
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]


[Test]
title 11.4 PlayItf SetStatePlayPausePlayStop
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 5000
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PAUSED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PAUSED
pause 2000
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 5000
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.5 PlayItf SetStatePause
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PAUSED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PAUSED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.6 PlayItf GetState
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.7 PlayItf GetDurationNullParam
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_GetDurationNullParam
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.8 PlayItf GetDuration
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_GetDuration 19000 21000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.9 PlayItf GetPositionNullParam
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_GetPositionNullParam
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.10 PlayItf GetPositionZero
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_GetPosition 0 0
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.11 PlayItf GetPosition5Sec
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 5000
ALImpl al_playitf_GetPosition
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.12 PlayItf RegisterCallback
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_RegisterCallback
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.13 PlayItf SetCallbackEventMaskInvalid
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_SetCallbackEventMask 32
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.14 PlayItf SetCallbackEventMask
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetCallbackEventMask 31
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.15 PlayItf GetCallbackEventMaskInvalid
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_GetCallbackEventMaskNullParam
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]


[Test]
title 11.16 PlayItf GetCallbackEventMask
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetCallbackEventMask 31
ALImpl al_playitf_GetCallbackEventMask 31
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.17 PlayItf SetMarkerPositionInvalid
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_SetMarkerPosition 300000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.18 PlayItf SetMarkerPosition
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetMarkerPosition 10000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.19 PlayItf ClearMarkerPosition
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetMarkerPosition 10000
ALImpl al_playitf_ClearMarkerPosition
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.20 PlayItf GetMarkerPositionInvalid
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_GetMarkerPositionNullParam
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.21 PlayItf GetMarkerPositionPreConditionViolation
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PRECONDITIONS_VIOLATED
ALImpl al_playitf_GetMarkerPosition 0
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.22 PlayItf SetGetMarkerPosition
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetMarkerPosition 10000
ALImpl al_playitf_GetMarkerPosition 10000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.23 PlayItf SetClearGetMarkerPosition
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetMarkerPosition 10000
ALImpl al_playitf_GetMarkerPosition 10000
ALImpl al_playitf_ClearMarkerPosition
allownextresult XA_RESULT_PRECONDITIONS_VIOLATED
ALImpl al_playitf_GetMarkerPosition 0
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.24 PlayItf SetPositionUpdatePeriod
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetPositionUpdatePeriod 10000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.25 PlayItf GetPositionUpdatePeriodInvalid
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_GetPositionUpdatePeriodNullParam 10000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.26 PlayItf GetPositionUpdatePeriod
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_GetPositionUpdatePeriod 1000
ALImpl al_playitf_SetPositionUpdatePeriod 10000
ALImpl al_playitf_GetPositionUpdatePeriod 10000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.27 PlayItf PlayEventHeadMoving
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_RegisterCallback
ALImpl al_playitf_SetCallbackEventMask 31
request Event_XA_PLAYEVENT_HEADMOVING
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADMOVING
release Event_XA_PLAYEVENT_HEADMOVING
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.28 PlayItf PlayEventHeadAtEnd
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_RegisterCallback
ALImpl al_playitf_SetCallbackEventMask 31
request Event_XA_PLAYEVENT_HEADATEND
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADATEND
release Event_XA_PLAYEVENT_HEADATEND
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PAUSED
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.29 PlayItf PlayEventHeadAtMarker
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_RegisterCallback
ALImpl al_playitf_SetCallbackEventMask 2
ALImpl al_playitf_SetMarkerPosition 3000
request Event_XA_PLAYEVENT_HEADATMARKER
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADATMARKER
release Event_XA_PLAYEVENT_HEADATMARKER
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.30 PlayItf PlayEventHeadAtMarkerPlayPausePlay
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_RegisterCallback
ALImpl al_playitf_SetCallbackEventMask 2
ALImpl al_playitf_SetMarkerPosition 15000
request Event_XA_PLAYEVENT_HEADATMARKER
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 10000
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PAUSED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PAUSED
pause 2000
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADATMARKER
release Event_XA_PLAYEVENT_HEADATMARKER
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.31 PlayItf PlayEventHeadAtNewPos
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_RegisterCallback
ALImpl al_playitf_SetCallbackEventMask 5
ALImpl al_playitf_SetPositionUpdatePeriod 2000
request Event_XA_PLAYEVENT_HEADATEND
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADATEND
release Event_XA_PLAYEVENT_HEADATEND
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 11.32 PlayItf GetInterafcePlayItfFailure
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
allownextresult XA_RESULT_PRECONDITIONS_VIOLATED
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.33 PlayItf GetInterafcePlayItf
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.34 PlayItf SetStatePlayStop
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 5000
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]


[Test]
title 11.35 PlayItf SetStatePlayPausePlayStop
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 5000
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PAUSED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PAUSED
pause 2000
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 5000
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.36 PlayItf SetStatePause
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PAUSED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PAUSED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.37 PlayItf GetState
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.38 PlayItf GetDurationNullParam
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_GetDurationNullParam
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.39 PlayItf GetDuration
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_GetDuration 140000 142000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.40 PlayItf GetPositionNullParam
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_GetPositionNullParam
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.41 PlayItf GetPositionZero
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_GetPosition 0
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.42 PlayItf GetPosition5Sec
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 5000
ALImpl al_playitf_GetPosition
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.43 PlayItf RegisterCallback
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_RegisterCallback
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.44 PlayItf SetCallbackEventMaskInvalid
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_SetCallbackEventMask 32
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.45 PlayItf SetCallbackEventMask
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetCallbackEventMask 31
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.46 PlayItf GetCallbackEventMaskInvalid
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_GetCallbackEventMaskNullParam
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]


[Test]
title 11.47 PlayItf GetCallbackEventMask
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetCallbackEventMask 31
ALImpl al_playitf_GetCallbackEventMask 31
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.48 PlayItf SetMarkerPositionInvalid
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_SetMarkerPosition 300000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.49 PlayItf SetMarkerPosition
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetMarkerPosition 10000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.50 PlayItf ClearMarkerPosition
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetMarkerPosition 10000
ALImpl al_playitf_ClearMarkerPosition
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.51 PlayItf GetMarkerPositionInvalid
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_GetMarkerPositionNullParam
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.52 PlayItf GetMarkerPositionPreConditionViolation
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PRECONDITIONS_VIOLATED
ALImpl al_playitf_GetMarkerPosition 0
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.53 PlayItf SetGetMarkerPosition
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetMarkerPosition 10000
ALImpl al_playitf_GetMarkerPosition 10000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.54 PlayItf SetClearGetMarkerPosition
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetMarkerPosition 10000
ALImpl al_playitf_GetMarkerPosition 10000
ALImpl al_playitf_ClearMarkerPosition
allownextresult XA_RESULT_PRECONDITIONS_VIOLATED
ALImpl al_playitf_GetMarkerPosition 0
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.55 PlayItf SetPositionUpdatePeriod
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_SetPositionUpdatePeriod 10000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.56 PlayItf GetPositionUpdatePeriodInvalid
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
allownextresult XA_RESULT_PARAMETER_INVALID
ALImpl al_playitf_GetPositionUpdatePeriodNullParam 10000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.58 PlayItf GetPositionUpdatePeriod
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_GetPositionUpdatePeriod 1000
ALImpl al_playitf_SetPositionUpdatePeriod 10000
ALImpl al_playitf_GetPositionUpdatePeriod 10000
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.60 PlayItf PlayEventHeadMoving
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_RegisterCallback
ALImpl al_playitf_SetCallbackEventMask 31
request Event_XA_PLAYEVENT_HEADMOVING
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADMOVING
release Event_XA_PLAYEVENT_HEADMOVING
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.61 PlayItf PlayEventHeadAtEnd
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_RegisterCallback
ALImpl al_playitf_SetCallbackEventMask 31
request Event_XA_PLAYEVENT_HEADATEND
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADATEND
release Event_XA_PLAYEVENT_HEADATEND
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PAUSED
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

[Test]
title 11.62 PlayItf PlayEventHeadAtMarker
create openmaxaltestmodule ALImpl
ALImpl al_createEngine 1 1 0 0
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
ALImpl al_SetDataFormat 1 video/3gp 23
ALImpl al_SetDataSource 1 1 1
ALImpl al_SetDataSink 3 6 1
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
ALImpl al_SetDataSink 5 3 2
ALImpl al_engitf_CreateMediaPlayer 0
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_playitf_RegisterCallback
ALImpl al_playitf_SetCallbackEventMask 2
ALImpl al_playitf_SetMarkerPosition 3000
request Event_XA_PLAYEVENT_HEADATMARKER
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
wait Event_XA_PLAYEVENT_HEADATMARKER
release Event_XA_PLAYEVENT_HEADATMARKER
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
ALImpl al_DeleteWindow
delete ALImpl
[Endtest]

//[Test]
//title 11.63 PlayItf PlayEventHeadAtMarkerPlayPausePlay
//create openmaxaltestmodule ALImpl
//ALImpl al_createEngine 1 1 0 0
//ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
//ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
//ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.3gp
//ALImpl al_SetDataFormat 1 vdieo/3gp 17
//ALImpl al_SetDataSource 1 1 1
//ALImpl al_SetDataSink 3 6 1
//ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
//ALImpl al_SetDataSink 5 3 2
//ALImpl al_engitf_CreateMediaPlayer 0
//ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
//ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
//ALImpl al_playitf_RegisterCallback
//ALImpl al_playitf_SetCallbackEventMask 2
//ALImpl al_playitf_SetMarkerPosition 15000
//request Event_XA_PLAYEVENT_HEADATMARKER
//ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
//ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
//pause 10000
//ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PAUSED
//ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PAUSED
//pause 2000
//ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
//ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
//wait Event_XA_PLAYEVENT_HEADATMARKER
//release Event_XA_PLAYEVENT_HEADATMARKER
//ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
//ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
//ALImpl al_objitf_Destroy MO_PLAYER
//ALImpl al_objitf_Destroy MO_ENGINE
//ALImpl al_DeleteWindow
//delete ALImpl
//[Endtest]
