21
|
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 |
[Test]
|
|
19 |
title 22.1 PlayItf RTSP
|
|
20 |
create openmaxaltestmodule ALImpl
|
|
21 |
ALImpl al_createEngine 1 1 0 0
|
|
22 |
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
|
|
23 |
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
|
|
24 |
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
|
|
25 |
ALImpl al_SetDataFormat 1 video/3gp 17
|
|
26 |
ALImpl al_SetDataSource 1 1 1
|
|
27 |
ALImpl al_SetDataSink 3 6 1
|
|
28 |
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
|
|
29 |
ALImpl al_SetDataSink 5 3 2
|
|
30 |
ALImpl al_engitf_CreateMediaPlayer 0
|
|
31 |
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
|
|
32 |
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
|
|
33 |
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
|
|
34 |
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
|
|
35 |
pause 20000
|
|
36 |
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
|
|
37 |
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
|
|
38 |
ALImpl al_objitf_Destroy MO_PLAYER
|
|
39 |
ALImpl al_objitf_Destroy MO_ENGINE
|
|
40 |
ALImpl al_DeleteWindow
|
|
41 |
delete ALImpl
|
|
42 |
[Endtest]
|
|
43 |
|
|
44 |
[Test]
|
|
45 |
title 22.2 PlayItf RTSPU
|
|
46 |
create openmaxaltestmodule ALImpl
|
|
47 |
ALImpl al_createEngine 1 1 0 0
|
|
48 |
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
|
|
49 |
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
|
25
|
50 |
ALImpl al_SetDataLocator 1 rtspu:\/\/10.48.2.56/WMTest/192k_WMV9_VBR_CIF_WMA9_60fps.wmv
|
21
|
51 |
ALImpl al_SetDataFormat 1 audio/3gp 17
|
|
52 |
ALImpl al_SetDataSource 1 1 1
|
|
53 |
ALImpl al_SetDataSink 3 6 1
|
|
54 |
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
|
|
55 |
ALImpl al_SetDataSink 5 3 2
|
|
56 |
ALImpl al_engitf_CreateMediaPlayer 0
|
|
57 |
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
|
|
58 |
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
|
|
59 |
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
|
|
60 |
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
|
|
61 |
pause 40000
|
|
62 |
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
|
|
63 |
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
|
|
64 |
ALImpl al_objitf_Destroy MO_PLAYER
|
|
65 |
ALImpl al_objitf_Destroy MO_ENGINE
|
|
66 |
ALImpl al_DeleteWindow
|
|
67 |
delete ALImpl
|
|
68 |
[Endtest]
|
|
69 |
|
|
70 |
[Test]
|
|
71 |
title 22.3 PlayItf RTSPT
|
|
72 |
create openmaxaltestmodule ALImpl
|
|
73 |
ALImpl al_createEngine 1 1 0 0
|
|
74 |
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
|
|
75 |
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
|
|
76 |
ALImpl al_SetDataLocator 1 rtspt:\/\/10.48.2.56/WMTest/128k_WMV9_VBR_QCIF_WMA9_30fps.wmv
|
|
77 |
ALImpl al_SetDataFormat 1 audio/3gp 17
|
|
78 |
ALImpl al_SetDataSource 1 1 1
|
|
79 |
ALImpl al_SetDataSink 3 6 1
|
|
80 |
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
|
|
81 |
ALImpl al_SetDataSink 5 3 2
|
|
82 |
ALImpl al_engitf_CreateMediaPlayer 0
|
|
83 |
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
|
|
84 |
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
|
|
85 |
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
|
|
86 |
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
|
|
87 |
pause 20000
|
|
88 |
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
|
|
89 |
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
|
|
90 |
ALImpl al_objitf_Destroy MO_PLAYER
|
|
91 |
ALImpl al_objitf_Destroy MO_ENGINE
|
|
92 |
ALImpl al_DeleteWindow
|
|
93 |
delete ALImpl
|
|
94 |
[Endtest]
|
|
95 |
|
|
96 |
[Test]
|
|
97 |
title 22.4 PlayItf MMS
|
|
98 |
create openmaxaltestmodule ALImpl
|
|
99 |
ALImpl al_createEngine 1 1 0 0
|
|
100 |
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
|
|
101 |
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
|
25
|
102 |
ALImpl al_SetDataLocator 1 mms:\/\/10.48.2.56:443/WMTest/128k_WMV9_VBR_QCIF_WMA9_30fps.wmv
|
21
|
103 |
ALImpl al_SetDataFormat 1 audio/3gp 17
|
|
104 |
ALImpl al_SetDataSource 1 1 1
|
|
105 |
ALImpl al_SetDataSink 3 6 1
|
|
106 |
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
|
|
107 |
ALImpl al_SetDataSink 5 3 2
|
|
108 |
ALImpl al_engitf_CreateMediaPlayer 0
|
|
109 |
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
|
|
110 |
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
|
|
111 |
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
|
|
112 |
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
|
|
113 |
pause 20000
|
|
114 |
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
|
|
115 |
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
|
|
116 |
ALImpl al_objitf_Destroy MO_PLAYER
|
|
117 |
ALImpl al_objitf_Destroy MO_ENGINE
|
|
118 |
ALImpl al_DeleteWindow
|
|
119 |
delete ALImpl
|
|
120 |
[Endtest]
|
|
121 |
|
|
122 |
|
|
123 |
[Test]
|
|
124 |
title 22.5 PlayItf HTTP
|
|
125 |
create openmaxaltestmodule ALImpl
|
|
126 |
ALImpl al_createEngine 1 1 0 0
|
|
127 |
ALImpl al_objitf_Realize MO_ENGINE XA_BOOLEAN_FALSE
|
|
128 |
ALImpl al_objitf_GetInterface MO_ENGINE XA_IID_ENGINE
|
|
129 |
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
|
|
130 |
ALImpl al_SetDataFormat 1 audio/3gp 17
|
|
131 |
ALImpl al_SetDataSource 1 1 1
|
|
132 |
ALImpl al_SetDataSink 3 6 1
|
|
133 |
ALImpl al_CreateWindow WinPtX WinPtY WinTopLeft WinTopRight WinBotLeft WinBotRight
|
|
134 |
ALImpl al_SetDataSink 5 3 2
|
|
135 |
ALImpl al_engitf_CreateMediaPlayer 0
|
|
136 |
ALImpl al_objitf_Realize MO_PLAYER XA_BOOLEAN_FALSE
|
|
137 |
ALImpl al_objitf_GetInterface MO_PLAYER XA_IID_PLAY
|
|
138 |
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_PLAYING
|
|
139 |
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_PLAYING
|
|
140 |
pause 20000
|
|
141 |
ALImpl al_playitf_SetPlayState XA_PLAYSTATE_STOPPED
|
|
142 |
ALImpl al_playitf_GetPlayState XA_PLAYSTATE_STOPPED
|
|
143 |
ALImpl al_objitf_Destroy MO_PLAYER
|
|
144 |
ALImpl al_objitf_Destroy MO_ENGINE
|
|
145 |
ALImpl al_DeleteWindow
|
|
146 |
delete ALImpl
|
|
147 |
[Endtest]
|
|
148 |
|