<label for="slider-1">Volume</label>
<input name="slider-1" id="slider-1" min="0" max="1" step="0.01" value="0.60" data-highlight="true" data-show-value="true" type="range">
</div>
- <div id="buttondiv">
- <a href="javascript:Previous()" id="previous" data-role="button">Retest Previous Video</a>
- <a href="javascript:Next()" id="next" data-role="button">Test Next Video</a>
- </div>
</div>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
<font class="fontSize">
<p>Test Purpose: </p>
- <p>Verifies the video playback of 3GP and MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching, device rotate, foreground and background switching on every video files.</p>
+ <p>Verifies the video playback of H.264 MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching, device rotate, foreground and background switching.</p>
<p>Note: Press back key to exit fullscreen</p>
<p>Expected Result: </p>
<p>Test passes if all the check points work well during the video playback.</p>
*/
-var videoFileList = new Array("3GP_h263_CIF_30FPS_507Kbps_eAAC+_Stereo_64Kbps_60sec(4.1Mb)_BBB.3gp", "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4", "MP4_MPEG4_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3Mb)_BBB(hinted).mp4");
+var videoFile = "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4";
var testTarget='';
$(document).ready(function(){
- $("#previous").addClass("ui-disabled");
-
//add contentdiv style
$("#contentdiv").css({"width":"340px","margin":"0px auto"});
//set default video.src
- $("#MediaPlayback").attr("src", "../../res/media/" + videoFileList[0]);
+ $("#MediaPlayback").attr("src", "../../res/media/" + videoFile);
document.getElementById("MediaPlayback").play();
document.getElementById("MediaPlayback").volume = 0.6;
}
});
};
-
-function Previous() {
- testTarget=document.getElementById("MediaPlayback");
- var fileName = getFileName(testTarget.src);
- for(i=0;i<3;i++) {
- if(fileName != videoFileList[i])
- continue;
- else
- break;
- }
- if(i > 1) {
- testTarget.src="../../res/media/"+videoFileList[i-1];
- testTarget.play();
- $("#next").removeClass("ui-disabled");
- }else {
- testTarget.src="../../res/media/"+videoFileList[i-1];
- testTarget.play();
- $("#previous").addClass("ui-disabled");
- $("#next").removeClass("ui-disabled");
- }
-}
-
-function Next() {
- testTarget=document.getElementById("MediaPlayback");
- var fileName = getFileName(testTarget.src);
- for(i=0;i<3;i++) {
- if(fileName != videoFileList[i])
- continue;
- else
- break;
- }
- if(i < 1) {
- testTarget.src="../../res/media/"+videoFileList[i+1];
- testTarget.play();
- $("#previous").removeClass("ui-disabled");
- }else {
- testTarget.src="../../res/media/"+videoFileList[i+1];
- testTarget.play();
- $("#next").addClass("ui-disabled");
- $("#previous").removeClass("ui-disabled");
- EnablePassButton();
- }
-}
-
-function getFileName(o){
- var pos=o.lastIndexOf("/");
- return o.substring(pos+1);
-}
<label for="slider-1">Volume</label>
<input name="slider-1" id="slider-1" min="0" max="1" step="0.01" value="0.60" data-highlight="true" data-show-value="true" type="range">
</div>
- <div id="buttondiv">
- <a href="javascript:Previous()" id="previous" data-role="button">Retest Previous Video</a>
- <a href="javascript:Next()" id="next" data-role="button">Test Next Video</a>
- </div>
</div>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
<font class="fontSize">
<p>Test Purpose: </p>
- <p>Verifies the video playback of 3GP and MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching on every video files.</p>
+ <p>Verifies the video playback of H.264 MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching.</p>
<p>Expected Result: </p>
<p>Test passes if all the check points work well during the video playback.</p>
</font>
*/
-var videoFileList = new Array("3GP_h263_CIF_30FPS_507Kbps_HE-AAC_Stereo_64Kbps_60sec(4.1Mb)_BBB.3gp", "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4", "MP4_MPEG4_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3Mb)_BBB(hinted).mp4");
+var videoFile = "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4";
var testTarget='';
$(document).ready(function(){
- $("#previous").addClass("ui-disabled");
-
//add contentdiv style
$("#contentdiv").css({"width":"340px","margin":"0px auto"});
//set default video.src
- $("#MediaPlayback").attr("src", "../../res/media/meego/" + videoFileList[0]);
+ $("#MediaPlayback").attr("src", "../../res/media/meego/" + videoFile);
document.getElementById("MediaPlayback").play();
document.getElementById("MediaPlayback").volume = 0.6;
$("#slider-1").hide();
DisablePassButton();
});
-
-function Previous() {
- testTarget=document.getElementById("MediaPlayback");
- var fileName = getFileName(testTarget.src);
- for(i=0;i<3;i++) {
- if(fileName != videoFileList[i])
- continue;
- else
- break;
- }
- if(i > 1) {
- testTarget.src="../../res/media/meego/"+videoFileList[i-1];
- testTarget.play();
- $("#next").removeClass("ui-disabled");
- }else {
- testTarget.src="../../res/media/meego/"+videoFileList[i-1];
- testTarget.play();
- $("#previous").addClass("ui-disabled");
- $("#next").removeClass("ui-disabled");
- }
-}
-
-function Next() {
- testTarget=document.getElementById("MediaPlayback");
- var fileName = getFileName(testTarget.src);
- for(i=0;i<3;i++) {
- if(fileName != videoFileList[i])
- continue;
- else
- break;
- }
- if(i < 1) {
- testTarget.src="../../res/media/meego/"+videoFileList[i+1];
- testTarget.play();
- $("#previous").removeClass("ui-disabled");
- }else {
- testTarget.src="../../res/media/meego/"+videoFileList[i+1];
- testTarget.play();
- $("#next").addClass("ui-disabled");
- $("#previous").removeClass("ui-disabled");
- EnablePassButton();
- }
-}
-
-function getFileName(o){
- var pos=o.lastIndexOf("/");
- return o.substring(pos+1);
-}
<label for="slider-1">Volume</label>
<input name="slider-1" id="slider-1" min="0" max="1" step="0.01" value="0.60" data-highlight="true" data-show-value="true" type="range">
</div>
- <div id="buttondiv">
- <a href="javascript:Previous()" id="previous" data-role="button">Retest Previous Video</a>
- <a href="javascript:Next()" id="next" data-role="button">Test Next Video</a>
- </div>
</div>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
<font class="fontSize">
<p>Test Purpose: </p>
- <p>Verifies the video playback of 3GP and MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching, device rotate, foreground and background switching on every video files.</p>
+ <p>Verifies the video playback of H.264 MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching, device rotate, foreground and background switching.</p>
<p>Note: Press back key to exit fullscreen</p>
<p>Expected Result: </p>
<p>Test passes if all the check points work well during the video playback.</p>
*/
-var videoFileList = new Array("3GP_h263_CIF_30FPS_507Kbps_eAAC+_Stereo_64Kbps_60sec(4.1Mb)_BBB.3gp", "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4", "MP4_MPEG4_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3Mb)_BBB(hinted).mp4");
+var videoFile = "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4";
var testTarget='';
$(document).ready(function(){
- $("#previous").addClass("ui-disabled");
-
//add contentdiv style
$("#contentdiv").css({"width":"340px","margin":"0px auto"});
//set default video.src
- $("#MediaPlayback").attr("src", "../../res/media/" + videoFileList[0]);
+ $("#MediaPlayback").attr("src", "../../res/media/" + videoFile);
document.getElementById("MediaPlayback").play();
document.getElementById("MediaPlayback").volume = 0.6;
}
});
};
-
-function Previous() {
- testTarget=document.getElementById("MediaPlayback");
- var fileName = getFileName(testTarget.src);
- for(i=0;i<3;i++) {
- if(fileName != videoFileList[i])
- continue;
- else
- break;
- }
- if(i > 1) {
- testTarget.src="../../res/media/"+videoFileList[i-1];
- testTarget.play();
- $("#next").removeClass("ui-disabled");
- }else {
- testTarget.src="../../res/media/"+videoFileList[i-1];
- testTarget.play();
- $("#previous").addClass("ui-disabled");
- $("#next").removeClass("ui-disabled");
- }
-}
-
-function Next() {
- testTarget=document.getElementById("MediaPlayback");
- var fileName = getFileName(testTarget.src);
- for(i=0;i<3;i++) {
- if(fileName != videoFileList[i])
- continue;
- else
- break;
- }
- if(i < 1) {
- testTarget.src="../../res/media/"+videoFileList[i+1];
- testTarget.play();
- $("#previous").removeClass("ui-disabled");
- }else {
- testTarget.src="../../res/media/"+videoFileList[i+1];
- testTarget.play();
- $("#next").addClass("ui-disabled");
- $("#previous").removeClass("ui-disabled");
- EnablePassButton();
- }
-}
-
-function getFileName(o){
- var pos=o.lastIndexOf("/");
- return o.substring(pos+1);
-}
<label for="slider-1">Volume</label>
<input name="slider-1" id="slider-1" min="0" max="1" step="0.01" value="0.60" data-highlight="true" data-show-value="true" type="range">
</div>
- <div id="buttondiv">
- <a href="javascript:Previous()" id="previous" data-role="button">Retest Previous Video</a>
- <a href="javascript:Next()" id="next" data-role="button">Test Next Video</a>
- </div>
</div>
<div data-role="footer" data-position="fixed">
</div>
<div data-role="popup" id="popup_info">
<font class="fontSize">
<p>Test Purpose: </p>
- <p>Verifies the video playback of 3GP and MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching, device rotate, foreground and background switching on every video files.</p>
+ <p>Verifies the video playback of H.264 MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching, device rotate, foreground and background switching.</p>
<p>Note: Press back key to exit fullscreen</p>
<p>Expected Result: </p>
<p>Test passes if all the check points work well during the video playback.</p>
*/
-var videoFileList = new Array("3GP_h263_CIF_30FPS_507Kbps_eAAC+_Stereo_64Kbps_60sec(4.1Mb)_BBB.3gp", "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4", "MP4_MPEG4_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3Mb)_BBB(hinted).mp4");
+var videoFile = "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4";
var testTarget='';
$(document).ready(function(){
- $("#previous").addClass("ui-disabled");
-
//add contentdiv style
$("#contentdiv").css({"width":"340px","margin":"0px auto"});
//set default video.src
- $("#MediaPlayback").attr("src", "../../res/media/" + videoFileList[0]);
+ $("#MediaPlayback").attr("src", "../../res/media/" + videoFile);
document.getElementById("MediaPlayback").play();
document.getElementById("MediaPlayback").volume = 0.6;
}
});
};
-
-function Previous() {
- testTarget=document.getElementById("MediaPlayback");
- var fileName = getFileName(testTarget.src);
- for(i=0;i<3;i++) {
- if(fileName != videoFileList[i])
- continue;
- else
- break;
- }
- if(i > 1) {
- testTarget.src="../../res/media/"+videoFileList[i-1];
- testTarget.play();
- $("#next").removeClass("ui-disabled");
- }else {
- testTarget.src="../../res/media/"+videoFileList[i-1];
- testTarget.play();
- $("#previous").addClass("ui-disabled");
- $("#next").removeClass("ui-disabled");
- }
-}
-
-function Next() {
- testTarget=document.getElementById("MediaPlayback");
- var fileName = getFileName(testTarget.src);
- for(i=0;i<3;i++) {
- if(fileName != videoFileList[i])
- continue;
- else
- break;
- }
- if(i < 1) {
- testTarget.src="../../res/media/"+videoFileList[i+1];
- testTarget.play();
- $("#previous").removeClass("ui-disabled");
- }else {
- testTarget.src="../../res/media/"+videoFileList[i+1];
- testTarget.play();
- $("#next").addClass("ui-disabled");
- $("#previous").removeClass("ui-disabled");
- EnablePassButton();
- }
-}
-
-function getFileName(o){
- var pos=o.lastIndexOf("/");
- return o.substring(pos+1);
-}
<label for="slider-1">Volume</label>
<input name="slider-1" id="slider-1" min="0" max="1" step="0.01" value="0.60" data-highlight="true" data-show-value="true" type="range">
</div>
- <div id="buttondiv">
- <a href="javascript:Previous()" id="previous" data-role="button">Retest Previous Video</a>
- <a href="javascript:Next()" id="next" data-role="button">Test Next Video</a>
- </div>
</div>
<div data-role="footer" data-position="inline">
</div>
<div data-role="popup" id="popup_info">
<div class="fontSize">
<p>Test Purpose: </p>
- <p>Verifies the video playback of 3GP and MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching on every video files.</p>
+ <p>Verifies the video playback of H.264 MP4 files works correctly. And tests the functionality of playback operations including play and pause, volume up and down, time bar sliding forward and backward, full screen and normal screen switching.</p>
<p>Note: Press back key to exit fullscreen</p>
<p>Expected Result: </p>
<p>Test passes if all the check points work well during the video playback.</p>
*/
-var videoFileList = [
- "3GP_h263_CIF_30FPS_507Kbps_eAAC+_Stereo_64Kbps_60sec(4.1Mb)_BBB.3gp",
- "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4",
- "MP4_MPEG4_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3Mb)_BBB(hinted).mp4"
- ];
+var videoFile = "MP4_h264_CIF_15FPS_387Kbps_MP3_44.1KHz_64Kbps_60sec(3.4Mb)_BBB(hinted).mp4";
var testTarget = "";
$(document).ready(function () {
- $("#previous").addClass("ui-disabled");
-
//add contentdiv style
$("#contentdiv").css({"width": "340px", "margin": "0px auto"});
//set default video.src
- $("#MediaPlayback").attr("src", "../../res/media/" + videoFileList[0]);
+ $("#MediaPlayback").attr("src", "../../res/media/" + videoFile);
document.getElementById("MediaPlayback").play();
document.getElementById("MediaPlayback").volume = 0.6;
}
});
};
-
-function Previous() {
- var fileName, i;
- testTarget = document.getElementById("MediaPlayback");
- fileName = getFileName(testTarget.src);
- for (i = 0; i < 3; i++) {
- if (fileName !== videoFileList[i]) {
- continue;
- } else {
- break;
- }
- }
- if (i > 1) {
- testTarget.src = "../../res/media/" + videoFileList[i - 1];
- testTarget.play();
- $("#next").removeClass("ui-disabled");
- } else {
- testTarget.src = "../../res/media/" + videoFileList[i - 1];
- testTarget.play();
- $("#previous").addClass("ui-disabled");
- $("#next").removeClass("ui-disabled");
- }
-}
-
-function Next() {
- var fileName, i;
- testTarget = document.getElementById("MediaPlayback");
- fileName = getFileName(testTarget.src);
- for (i = 0; i < 3; i++) {
- if (fileName !== videoFileList[i]) {
- continue;
- } else {
- break;
- }
- }
- if (i < 1) {
- testTarget.src = "../../res/media/" + videoFileList[i + 1];
- testTarget.play();
- $("#previous").removeClass("ui-disabled");
- } else {
- testTarget.src = "../../res/media/" + videoFileList[i + 1];
- testTarget.play();
- $("#next").addClass("ui-disabled");
- $("#previous").removeClass("ui-disabled");
- EnablePassButton();
- }
-}
-
-function getFileName(o) {
- var pos = o.lastIndexOf("/");
- return o.substring(pos + 1);
-}