//
// 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: 
//
//

[Test]
title 13.1 DynSrcItf SetSource
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 1 XA_IID_DYNAMICSOURCE
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_DYNAMICSOURCE
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
pause 10000
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/test.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 4
ALImpl al_dynsrcitf_SetSource
pause 10000
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 13.2 DynSrcItf MediaPlayer MetadataExtraction GetValue MP3
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 2 XA_IID_DYNAMICSOURCE XA_IID_METADATAEXTRACTION
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_DYNAMICSOURCE
ALImpl al_objitf_GetInterface MO_PLAYER 17
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/JapJap.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 4
ALImpl al_dynsrcitf_SetSource
ALImpl al_metadataextractionitf_GetValue KhronosTitle JapJap
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 13.3 DynSrcItf MediaPlayer MetadataExtraction GetValue MP4
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 2 XA_IID_DYNAMICSOURCE XA_IID_METADATAEXTRACTION
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_DYNAMICSOURCE
ALImpl al_objitf_GetInterface MO_PLAYER 17
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/testmp4.mp4
ALImpl al_SetDataFormat 1 video/mp4 10
ALImpl al_SetDataSource 1 1 4
ALImpl al_dynsrcitf_SetSource
ALImpl al_metadataextractionitf_GetValue KhronosTitle mp4_aac
ALImpl al_objitf_Destroy MO_PLAYER
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 13.4 DynSrcItf MetadataExtractor MetadataExtraction GetValue MP3
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 3
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMetadataExtractor 2 17 XA_IID_DYNAMICSOURCE
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 XA_IID_DYNAMICSOURCE
ALImpl al_objitf_GetInterface 8 17
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/JapJap.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 4
ALImpl al_dynsrcitf_SetSource
ALImpl al_metadataextractionitf_GetValue KhronosTitle JapJap
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 13.5 DynSrcItf MediaPlayer MetadataExtraction GetValue MP4 S60 Reset
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 3
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMetadataExtractor 2 17 XA_IID_DYNAMICSOURCE
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 XA_IID_DYNAMICSOURCE
ALImpl al_objitf_GetInterface 8 17
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/testmp4.mp4
ALImpl al_SetDataFormat 1 video/mp4 10
ALImpl al_SetDataSource 1 1 4
ALImpl al_dynsrcitf_SetSource
ALImpl al_metadataextractionitf_GetValue KhronosTitle mp4_aac
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]

[Test]
title 13.6 DynSrcItf MediaPlayer MetadataExtraction GetValue MP3 Helix Reset
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/testmp4.mp4
ALImpl al_SetDataFormat 1 video/mp4 10
ALImpl al_SetDataSource 1 1 3
ALImpl al_SetDataSink 3 6 1
ALImpl al_engitf_CreateMetadataExtractor 2 17 XA_IID_DYNAMICSOURCE
ALImpl al_objitf_Realize 8 0
ALImpl al_objitf_GetInterface 8 XA_IID_DYNAMICSOURCE
ALImpl al_objitf_GetInterface 8 17
ALImpl al_SetDataLocator 1 file:/\/\/c:/testing/data/omxaltestdata/JapJap.mp3
ALImpl al_SetDataFormat 1 audio/mpeg 9
ALImpl al_SetDataSource 1 1 4
ALImpl al_dynsrcitf_SetSource
ALImpl al_metadataextractionitf_GetValue KhronosTitle JapJap
ALImpl al_objitf_Destroy 8
ALImpl al_objitf_Destroy MO_ENGINE
delete ALImpl
[Endtest]
