当我尝试在 Chrome 5.0.375.86 中设置 HTML5 Video 元素的 currentTime 时:
video.currentTime = 1.0;
我收到以下 javascript 异常:
Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1
它在 Safari 中运行良好。有人经历过吗??
最佳答案
尝试这样的事情(JS):
function loadStart(event)
{
video.currentTime = 1.0;
}
function init()
{
video.addEventListener('loadedmetadata', loadStart, false);
}
document.addEventListener("DOMContentLoaded", init, false);
关于javascript - HTML5 视频 - Chrome - 错误设置 currentTime,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3165444/