//
// 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 22.1 PlayItf RTSP
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 rtsp:\/\/10.48.2.51/Copyright_Free_Test_Content/Clips/Video/3GP/176x144/h263/h263_176x144_15fps_384kbps_AAC-LC_128kbps_mono_44.1kHz.3gp
ALImpl al_SetDataFormat 1 video/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_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 20000
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 22.2 PlayItf RTSPU
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 rtsp:\/\/10.48.2.56/WMTest/192k_WMV9_VBR_CIF_WMA9_60fps.wmv
ALImpl al_SetDataFormat 1 audio/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_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 40000
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 22.3 PlayItf RTSPT
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 rtspt:\/\/10.48.2.56/WMTest/128k_WMV9_VBR_QCIF_WMA9_30fps.wmv
ALImpl al_SetDataFormat 1 audio/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_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 20000
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 22.4 PlayItf MMS
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 mms:\/\/10.48.2.56/WMTest/128k_WMV9_VBR_QCIF_WMA9_30fps.wmv
ALImpl al_SetDataFormat 1 audio/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_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 20000
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 22.5 PlayItf HTTP
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 http:\/\/10.48.2.51/Copyright_Free_Test_Content/Clips/Video/3GP/176x144/mpeg4/mpeg4_176x144_15fps_384kbps_AAC-LC_128kbps_mono_44.1kHz.3gp
ALImpl al_SetDataFormat 1 audio/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_SetPlayState XA_PLAYSTATE_PLAYING
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
pause 20000
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]

