Internet Explorer 10 对 HTML5 视频的错误行为是其他浏览器吗?
通过此测试,IE10 开发预览版显示非常奇怪的行为。它通过了测试,但继续播放,同时应保持暂停状态。其他浏览器不会显示此行为。
给定以下代码(摘自 中的嵌入脚本),视频应该在通过测试后开始播放吗?
var t = async_test("video.paused should be true during pause event", {timeout:30000});
var v = document.getElementById("v");
v.addEventListener("pause", function() {
t.step(function() {
assert_true(v.paused);
});
t.done();
}, false);
v.src = getVideoURI("http://media.w3.org/2010/05/video/movie_300") + "?" + new Date() + Math.random();
v.play();
v.pause();
With this test, IE10 dev-preview shows very strange behavior. It passes the test but continue the playback while it should remain at the paused state. Other browsers don't show this behavior.
Given the following piece of code (extracted from the embedded script in ), should the video start playing after passing the test?
var t = async_test("video.paused should be true during pause event", {timeout:30000});
var v = document.getElementById("v");
v.addEventListener("pause", function() {
t.step(function() {
assert_true(v.paused);
});
t.done();
}, false);
v.src = getVideoURI("http://media.w3.org/2010/05/video/movie_300") + "?" + new Date() + Math.random();
v.play();
v.pause();
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论