</spec>
</specs>
</testcase>
- <testcase purpose="Check if the video.canPlayType supports video/webm after ordered the codecs's parameter(theora, vorbis)" type="compliance" status="approved" component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" priority="P0" id="canplaytype_codecs_order_theora_vorbis">
+ <testcase purpose="Check if the video.canPlayType supports video/mp4 after ordered the codecs's parameter(theora, vorbis)" type="compliance" status="approved" component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" priority="P0" id="canplaytype_codecs_order_theora_vorbis">
<description>
<test_script_entry test_script_expected_result="0">/opt/tct-video-html5-tests/video/w3c/canPlayType_codecs_order_2.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if the video.canPlayType supports video/webm after ordered the codecs's parameter(avc1.42E01E, mp4a.40.2)" type="compliance" status="approved" component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" priority="P2" id="canplaytype_codecs_order_avc_mp4a">
+ <testcase purpose="Check if the video.canPlayType supports video/mp4 after ordered the codecs's parameter(avc1.42E01E, mp4a.40.2)" type="compliance" status="approved" component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" priority="P2" id="canplaytype_codecs_order_avc_mp4a">
<description>
<test_script_entry test_script_expected_result="0">/opt/tct-video-html5-tests/video/w3c/canPlayType_codecs_order_3.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if the video.canPlayType supports video/webm after ordered the codecs's parameter(vp8, vorbis)" type="compliance" status="approved" component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" priority="P2" id="canplaytype_codecs_order_vp8_vorbis">
+ <testcase purpose="Check if the video.canPlayType supports video/mp4 after ordered the codecs's parameter(vp8, vorbis)" type="compliance" status="approved" component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" priority="P2" id="canplaytype_codecs_order_vp8_vorbis">
<description>
<test_script_entry test_script_expected_result="0">/opt/tct-video-html5-tests/video/w3c/canPlayType_codecs_order_1.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if the video.canPlayType supports video webm" type="compliance" status="approved" component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" priority="P2" id="canplaytype_webm_supported_but_no_codecs_parameter">
+ <testcase purpose="Check if the video.canPlayType supports video mp4" type="compliance" status="approved" component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" priority="P2" id="canplaytype_mp4_supported_but_no_codecs_parameter">
<description>
<test_script_entry test_script_expected_result="0">/opt/tct-video-html5-tests/video/w3c/canPlayType_supported_but_no_codecs_parameter_1.html</test_script_entry>
</description>
</spec>
</specs>
</testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_pause_webm_vp8_vorbis" priority="P3" purpose="Check if user agent is able to pause playing video playback for stream webm vp8 vorbis" status="approved" type="compliance">
- <description>
- <steps>
- <step order="1">
- <step_desc>Check if user agent is able to pause playing video playback for stream webm vp8 vorbis</step_desc>
- <expected>Pass</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-video-html5-tests/video/video_pause_webm_vp8_vorbis.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion category="Tizen W3C API Specifications" interface="HTMLVideoElement" section="Media" specification="HTML5 The video element" usage="true"/>
- <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/the-video-element.html#the-video-element</spec_url>
- <spec_statement/>
- </spec>
- </specs>
- </testcase>
<testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_paused_attribute_readonly" priority="P2" purpose="Check if the video.paused attribute is readonly" status="approved" type="compliance">
<description>
<steps>
</spec>
</specs>
</testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_play_webm_vp8_vorbis" priority="P3" purpose="Check if user agent is able to play video stream webm vp8 vorbis with event ended fired when ended playback" status="approved" type="compliance">
- <description>
- <steps>
- <step order="1">
- <step_desc>Check if user agent is able to play video stream webm vp8 vorbis with event ended fired when ended playback</step_desc>
- <expected>Pass</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-video-html5-tests/video/video_play_webm_vp8_vorbis.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion category="Tizen W3C API Specifications" interface="HTMLVideoElement" section="Media" specification="HTML5 The video element" usage="true"/>
- <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/the-video-element.html#the-video-element</spec_url>
- <spec_statement/>
- </spec>
- </specs>
- </testcase>
<testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_defaultPlaybackRate_value_null" priority="P2" purpose="Check if the video.defaultPlaybackRate attribute that on getting it must return 0 it was set to null" status="approved" type="compliance">
<description>
<steps>
</spec>
</specs>
</testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_resume_webm_vp8_vorbis" priority="P3" purpose="Check if user agent is able to resume paused video playback for stream webm vp8 vorbis" status="approved" type="compliance">
- <description>
- <steps>
- <step order="1">
- <step_desc>Check if user agent is able to resume paused video playback for stream webm vp8 vorbis</step_desc>
- <expected>Pass</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-video-html5-tests/video/video_resume_webm_vp8_vorbis.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion category="Tizen W3C API Specifications" interface="HTMLVideoElement" section="Media" specification="HTML5 The video element" usage="true"/>
- <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/the-video-element.html#the-video-element</spec_url>
- <spec_statement/>
- </spec>
- </specs>
- </testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_seek_webm_vp8_vorbis" priority="P3" purpose="Check if user agent is able to seek video playback with currentTime attribute for stream webm vp8 vorbis" status="approved" type="compliance">
- <description>
- <steps>
- <step order="1">
- <step_desc>Check if user agent is able to seek video playback with currentTime attribute for stream webm vp8 vorbis</step_desc>
- <expected>Pass</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-video-html5-tests/video/video_seek_webm_vp8_vorbis.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion category="Tizen W3C API Specifications" interface="HTMLVideoElement" section="Media" specification="HTML5 The video element" usage="true"/>
- <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/the-video-element.html#the-video-element</spec_url>
- <spec_statement/>
- </spec>
- </specs>
- </testcase>
<testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_seekable_attribute_readonly" priority="P2" purpose="Check if video.seekable attribute is readonly" status="approved" type="compliance">
<description>
<steps>
</spec>
</specs>
</testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_stop_webm_vp8_vorbis" priority="P3" purpose="Check if user agent is able to stop video playback for stream webm vp8 vorbis" status="approved" type="compliance">
- <description>
- <steps>
- <step order="1">
- <step_desc>Check if user agent is able to stop video playback for stream webm vp8 vorbis</step_desc>
- <expected>Pass</expected>
- </step>
- </steps>
- <test_script_entry>/opt/tct-video-html5-tests/video/video_stop_webm_vp8_vorbis.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion category="Tizen W3C API Specifications" interface="HTMLVideoElement" section="Media" specification="HTML5 The video element" usage="true"/>
- <spec_url>http://www.w3.org/TR/2012/WD-html5-20121025/the-video-element.html#the-video-element</spec_url>
- <spec_statement/>
- </spec>
- </specs>
- </testcase>
<testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_videoHeght_media_resource_available" priority="P3" purpose="Check if video.videoheight return the intrinsic height of the video when have a media resource" status="approved" type="compliance">
<description>
<pre_condition/>
<test_script_entry>/opt/tct-video-html5-tests/video/video_textTracks_valid_value.html</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" id="canplaytype_codecs_order_theora_vorbis" purpose="Check if the video.canPlayType supports video/webm after ordered the codecs's parameter(theora, vorbis)">
+ <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" id="canplaytype_codecs_order_theora_vorbis" purpose="Check if the video.canPlayType supports video/mp4 after ordered the codecs's parameter(theora, vorbis)">
<description>
<test_script_entry test_script_expected_result="0">/opt/tct-video-html5-tests/video/w3c/canPlayType_codecs_order_2.html</test_script_entry>
</description>
<test_script_entry test_script_expected_result="0">/opt/tct-video-html5-tests/video/w3c/canPlayType_two_implies_one_3.html</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" id="canplaytype_codecs_order_avc_mp4a" purpose="Check if the video.canPlayType supports video/webm after ordered the codecs's parameter(avc1.42E01E, mp4a.40.2)">
+ <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" id="canplaytype_codecs_order_avc_mp4a" purpose="Check if the video.canPlayType supports video/mp4 after ordered the codecs's parameter(avc1.42E01E, mp4a.40.2)">
<description>
<test_script_entry test_script_expected_result="0">/opt/tct-video-html5-tests/video/w3c/canPlayType_codecs_order_3.html</test_script_entry>
</description>
<test_script_entry test_script_expected_result="0">/opt/tct-video-html5-tests/video/w3c/canPlayType_supported_but_no_codecs_parameter_3.html</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" id="canplaytype_codecs_order_vp8_vorbis" purpose="Check if the video.canPlayType supports video/webm after ordered the codecs's parameter(vp8, vorbis)">
+ <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" id="canplaytype_codecs_order_vp8_vorbis" purpose="Check if the video.canPlayType supports video/mp4 after ordered the codecs's parameter(vp8, vorbis)">
<description>
<test_script_entry test_script_expected_result="0">/opt/tct-video-html5-tests/video/w3c/canPlayType_codecs_order_1.html</test_script_entry>
</description>
<test_script_entry test_script_expected_result="0">/opt/tct-video-html5-tests/video/w3c/canPlayType_two_implies_one_2.html</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" id="canplaytype_webm_supported_but_no_codecs_parameter" purpose="Check if the video.canPlayType supports video webm">
+ <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element (Partial)" execution_type="auto" id="canplaytype_mp4_supported_but_no_codecs_parameter" purpose="Check if the video.canPlayType supports video mp4">
<description>
<test_script_entry test_script_expected_result="0">/opt/tct-video-html5-tests/video/w3c/canPlayType_supported_but_no_codecs_parameter_1.html</test_script_entry>
</description>
<test_script_entry>/opt/tct-video-html5-tests/video/video_pause_mp4_h264_aac.html</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_pause_webm_vp8_vorbis" purpose="Check if user agent is able to pause playing video playback for stream webm vp8 vorbis">
- <description>
- <test_script_entry>/opt/tct-video-html5-tests/video/video_pause_webm_vp8_vorbis.html</test_script_entry>
- </description>
- </testcase>
<testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_paused_attribute_readonly" purpose="Check if the video.paused attribute is readonly">
<description>
<test_script_entry>/opt/tct-video-html5-tests/video/video_paused_attribute_readonly.html</test_script_entry>
<test_script_entry>/opt/tct-video-html5-tests/video/video_play_mp4_h264_aac.html</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" onload_delay="10" id="video_play_webm_vp8_vorbis" purpose="Check if user agent is able to play video stream webm vp8 vorbis with event ended fired when ended playback">
- <description>
- <test_script_entry>/opt/tct-video-html5-tests/video/video_play_webm_vp8_vorbis.html</test_script_entry>
- </description>
- </testcase>
<testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_playbackRate_value_null" purpose="Check if the video.playbackRate attribute return 0 it was set to null">
<description>
<test_script_entry>/opt/tct-video-html5-tests/video/video_playbackRate_value_null.html</test_script_entry>
<test_script_entry>/opt/tct-video-html5-tests/video/video_preload_auto.html</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" onload_delay="10" id="video_resume_webm_vp8_vorbis" purpose="Check if user agent is able to resume paused video playback for stream webm vp8 vorbis">
- <description>
- <test_script_entry>/opt/tct-video-html5-tests/video/video_resume_webm_vp8_vorbis.html</test_script_entry>
- </description>
- </testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" onload_delay="10" id="video_seek_webm_vp8_vorbis" purpose="Check if user agent is able to seek video playback with currentTime attribute for stream webm vp8 vorbis">
- <description>
- <test_script_entry>/opt/tct-video-html5-tests/video/video_seek_webm_vp8_vorbis.html</test_script_entry>
- </description>
- </testcase>
<testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_seekable_attribute_readonly" purpose="Check if video.seekable attribute is readonly">
<description>
<test_script_entry>/opt/tct-video-html5-tests/video/video_seekable_attribute_readonly.html</test_script_entry>
<test_script_entry>/opt/tct-video-html5-tests/video/video_src_basic.html</test_script_entry>
</description>
</testcase>
- <testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_stop_webm_vp8_vorbis" purpose="Check if user agent is able to stop video playback for stream webm vp8 vorbis">
- <description>
- <test_script_entry>/opt/tct-video-html5-tests/video/video_stop_webm_vp8_vorbis.html</test_script_entry>
- </description>
- </testcase>
<testcase component="W3C_HTML5 APIs/Media/HTML5 The video element" execution_type="auto" id="video_videoHeght_media_resource_available" purpose="Check if video.videoheight return the intrinsic height of the video when have a media resource">
<description>
<test_script_entry>/opt/tct-video-html5-tests/video/video_videoHeght_media_resource_available.html</test_script_entry>
<script src="../resources/testharnessreport.js"></script>
</head>
<body>
- <video id="video" controls="controls" src="media/movie_5.webm">
+ <video id="video" controls="controls" src="media/movie_5.mp4">
Your browser does not support media elements.
</video>
<div id="log"></div>
<script src="../resources/testharnessreport.js"></script>
</head>
<body>
- <video id="video" src="media/movie_5.webm">
+ <video id="video" src="media/movie_5.mp4">
Your browser does not support media elements.
</video>
<div id="log"></div>
<script src="../resources/testharnessreport.js"></script>
</head>
<body>
- <video id="video" controls="controls" src="media/movie_5.webm">
+ <video id="video" controls="controls" src="media/movie_5.mp4">
Your browser does not support media elements.
</video>
<div id="log"></div>
<script src="../resources/testharnessreport.js"></script>
</head>
<body>
- <video id="video" controls="controls" src="media/movie_5.webm">
+ <video id="video" controls="controls" src="media/movie_5.mp4">
Your browser does not support media elements.
</video>
<div id="log"></div>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this lis
- of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
- may be used to endorse or promote products derived from this work withou
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
- Zhang, Zhiqiang <zhiqiang.zhang@intel.com>
- Ge, Qing <qingx.ge@intel.com>
-
--->
-
-
-<html>
- <head>
- <title>Video Test: video_pause_webm_vp8_vorbis</title>
- <link rel="author" title="Intel" href="http://www.intel.com/"/>
- <link rel="help"href="http://www.w3.org/TR/2012/WD-html5-20121025/the-video-element.html#the-video-element"/>
- <meta name="flags" content="" />
- <meta name="assert" content="Check if user agent is able to pause playing video playback for stream webm vp8 vorbis"/>
- <script src="../resources/testharness.js"></script>
- <script src="../resources/testharnessreport.js"></script>
- </head>
- <body>
- <p><a href="http://www.w3.org/TR/html5/the-iframe-element.html#mediaevents">spec reference</a></p>
- <h4 id="link2">webm/vp8/vorbis</h4>
- <video id="v" controls>
- </video>
- <div id="log"></div>
- <script>
- var t = async_test("video.play()/pause() - to verify if user agent is able to pause playing video playback for stream webm vp8 vorbis", {timeout:30000});
- setup({timeout:1000000});
- var v = document.getElementById("v");
- v.addEventListener('pause', function () {
- t.step(function () {
- assert_true(v.paused, "pause event");
- });
- t.done();
- }, false);
- v.src="media/movie_5.webm"
- v.play();
- v.pause();
- </script>
- </body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this lis
- of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
- may be used to endorse or promote products derived from this work withou
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
- Zhang, Zhiqiang <zhiqiang.zhang@intel.com>
- Ge, Qing <qingx.ge@intel.com>
-
--->
-
-<html>
- <head>
- <title>Video Test: video_play_webm_vp8_vorbis</title>
- <link rel="author" title="Intel" href="http://www.intel.com/"/>
- <link rel="help" href="http://www.w3.org/TR/2012/WD-html5-20121025/the-video-element.html#the-video-element"/>
- <meta name="flags" content="" />
- <meta name="assert" content="Check if user agent is able to play video stream webm vp8 vorbis with event ended fired when ended playback"/>
- <script src="../resources/testharness.js"></script>
- <script src="../resources/testharnessreport.js"></script>
- </head>
- <body>
- <p><a href="http://www.w3.org/TR/html5/the-iframe-element.html#mediaevents">spec reference</a></p>
- <h4 id="link2">webm/vp8/vorbis</h4>
- <video id="v" controls>
- </video>
- <div id="log"></div>
- <script>
- var time = 30000;
- var time2 = 1000000;
- var timeout = 100;
- var timeout2 = 30000;
- var t = async_test("video.play() - to verify if user agent is able to play video stream webm vp8 vorbis with event ended fired when ended playback", {timeout:time});
- setup({timeout:time2});
- var v = document.getElementById("v");
- v.addEventListener('ended', t.step_func(function() {
- t.done();
- }), false);
- v.addEventListener('loadedmetadata', function() {
- v.currentTime=v.duration-2;
- }, false);
- setTimeout(function (){
- t.step(function() {
- assert_true(false, "user agent is able to play video stream webm vp8 vorbis with event ended fired when ended playback");
- });
- t.done();
- }, timeout2);
- v.src="media/movie_5.webm";
- v.play();
- </script>
- </body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this lis
- of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
- may be used to endorse or promote products derived from this work withou
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
- Zhang, Zhiqiang <zhiqiang.zhang@intel.com>
- Cao, Jun <junx.cao@intel.com>
-
--->
-
-<html>
- <head>
- <title>Video Test: video_resume_webm_vp8_vorbis</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="http://www.w3.org/TR/2012/WD-html5-20121025/the-video-element.html#the-video-element" />
- <meta name="flags" content="" />
- <meta name="assert" content="Check if user agent is able to resume paused video playback for stream webm vp8 vorbis" />
- <script src="../resources/testharness.js"></script>
- <script src="../resources/testharnessreport.js"></script>
- </head>
- <body>
- <div id="log"></div>
- <video id="v">
- Your browser does not support media elements.
- </video>
- <script>
- var t = async_test("video.play()/pause() - to verify if user agent is able to resume paused video playback for stream webm vp8 vorbis", {timeout:30000});
- setup({timeout:1000000});
-
- var v = document.getElementById("v");
-
- function startTest() {
- t.step(function() {
- v.currentTime = v.duration - 2;
- v.play();
- });
- return false;
- }
-
- var resumed = false;
-
- function playpause() {
- if (resumed)
- return false;
-
- t.step(function() {
- if (v.paused) {
- v.play();
- resumed = true;
- assert_false(v.paused, "paused is newly false after resume");
- } else {
- v.pause();
- assert_true(v.paused, "paused is newly true after pause");
- }
- });
- return false;
- }
-
- function endTest() {
- t.step(function() {
- assert_true(true, "ended event");
- });
- t.done();
- return false;
- }
-
- v.addEventListener("loadedmetadata", startTest, false);
- v.addEventListener("play", playpause, false);
- v.addEventListener("pause", playpause, false);
- v.addEventListener("ended", endTest, false);
-
- v.src="media/movie_5.webm";
- </script>
- </body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this lis
- of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
- may be used to endorse or promote products derived from this work withou
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
- Zhang, Zhiqiang <zhiqiang.zhang@intel.com>
- Cao, Jun <junx.cao@intel.com>
-
--->
-
-<html>
- <head>
- <title>Video Test: video_seek_webm_vp8_vorbis</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="http://www.w3.org/TR/2012/WD-html5-20121025/the-video-element.html#the-video-element" />
- <meta name="flags" content="" />
- <meta name="assert" content="Check if user agent is able to seek video playback with currentTime attribute for stream webm vp8 vorbis" />
- <script src="../resources/testharness.js"></script>
- <script src="../resources/testharnessreport.js"></script>
- </head>
- <body>
- <div id="log"></div>
- <video id="v">
- Your browser does not support media elements.
- </video>
- <script>
- var t = async_test("video.currentTime - to verify if user agent is able to seek video playback with currentTime attribute for stream webm vp8 vorbis", {timeout:30000});
- setup({timeout:1000000});
-
- var v = document.getElementById("v");
-
- var completed = false;
-
- function startTest() {
- if (completed)
- return false;
-
- v.currentTime= v.duration - 2;
-
- t.step(function() {
- assert_true(true, "loadmetadata event");
- assert_true(v.seeking, "seeking flag on seek start should be true");
- v.play();
- });
- return false;
- }
-
- function seekStarted() {
- if (completed)
- return false;
-
- t.step(function() {
- assert_true(true, "seeking event");
- v.pause();
- });
- return false;
- }
-
- function seekEnded() {
- if (completed)
- return false;
-
- t.step(function() {
- assert_true(true, "seeked event");
- assert_false(v.seeking, "seeking flag on seeked should be false");
- v.play();
- });
- return false;
- }
-
- function playbackEnded() {
- if (completed)
- return false;
-
- completed = true;
- t.step(function() {
- assert_true(true, "ended event");
- });
- t.done();
- return false;
- }
-
- v.addEventListener("ended", playbackEnded, false);
- v.addEventListener("loadedmetadata", startTest, false);
- v.addEventListener("seeking", seekStarted, false);
- v.addEventListener("seeked", seekEnded, false);
-
- v.src="media/movie_5.webm";
- </script>
- </body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this lis
- of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
- may be used to endorse or promote products derived from this work withou
- specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
- Zhang, Zhiqiang <zhiqiang.zhang@intel.com>
- Cao, Jun <junx.cao@intel.com>
-
--->
-
-<html>
- <head>
- <title>Video Test: video_stop_webm_vp8_vorbis</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="http://www.w3.org/TR/2012/WD-html5-20121025/the-video-element.html#the-video-element" />
- <meta name="flags" content="" />
- <meta name="assert" content="Check if user agent is able to stop video playback for stream webm vp8 vorbis" />
- <script src="../resources/testharness.js"></script>
- <script src="../resources/testharnessreport.js"></script>
- </head>
- <body>
- <div id="log"></div>
- <video id="v">
- Your browser does not support media elements.
- </video>
- <script>
- var t = async_test("video.play()/pause() - to verify if user agent is able to stop video playback for stream webm vp8 vorbis", {timeout:30000});
- setup({timeout:1000000});
-
- var v = document.getElementById("v");
-
- function startTest() {
- t.step(function() {
- v.currentTime = v.duration - 5;
- v.play();
- });
- return false;
- }
-
- function rewind() {
- t.step(function() {
- v.pause();
- v.currentTime = 0.0;
- });
- return false;
- }
-
- function endTest() {
- t.step(function() {
- assert_equals(v.currentTime, 0.0, "Stop shall be at time 0.0");
- });
- t.done();
- return false;
- }
-
- v.addEventListener("loadedmetadata", startTest, false);
- v.addEventListener("play", rewind, false);
- v.addEventListener("pause", endTest, false);
-
- v.src="media/movie_5.webm"
- </script>
- </body>
-</html>
test(function() {
var v = document.getElementById("v");
assert_equals(
- v.canPlayType('video/webm; codecs="vp8, vorbis"'),
- v.canPlayType('video/webm; codecs="vorbis, vp8"'),
+ v.canPlayType('video/mp4; codecs="vp8, vorbis"'),
+ v.canPlayType('video/mp4; codecs="vorbis, vp8"'),
"order of codecs parameters should have no effect");
});
</script>
<script>
test(function() {
var v = document.getElementById("v");
- if (v.canPlayType('video/webm; codecs="vp8, vorbis"') == "probably") {
+ if (v.canPlayType('video/mp4; codecs="vp8, vorbis"') == "probably") {
assert_equals(
- v.canPlayType("video/webm"),
+ v.canPlayType("video/mp4"),
"maybe",
"videoElement.canPlayType() should return 'maybe' on supported format w/o codecs parameter");
}
<script>
test(function() {
var v = document.getElementById("v");
- if (v.canPlayType('video/webm; codecs="vp8, vorbis"') == "probably") {
+ if (v.canPlayType('video/mp4; codecs="vp8, vorbis"') == "probably") {
assert_equals(
- v.canPlayType('video/webm; codecs="vp8, vorbis"'),
- v.canPlayType('video/webm; codecs="vp8"'),
+ v.canPlayType('video/mp4; codecs="vp8, vorbis"'),
+ v.canPlayType('video/mp4; codecs="vp8"'),
"ability to play two codecs implies the ability to play one");
}
});
<script>
test(function() {
var v = document.getElementById("v");
- if (v.canPlayType('video/webm; codecs="vp8, vorbis"') == "probably") {
+ if (v.canPlayType('video/mp4; codecs="vp8, vorbis"') == "probably") {
assert_equals(
- v.canPlayType('video/webm; codecs="vp8, vorbis"'),
- v.canPlayType('video/webm; codecs="vorbis"'),
+ v.canPlayType('video/mp4; codecs="vp8, vorbis"'),
+ v.canPlayType('video/mp4; codecs="vorbis"'),
"ability to play two codecs implies the ability to play one");
}
});