HTML5 Video - Chrome - Error settings currentTime

10,573

Try something like this (JS):

function loadStart(event)
{
    video.currentTime = 1.0;
}

function init()
{
    video.addEventListener('loadedmetadata', loadStart, false);
}
document.addEventListener("DOMContentLoaded", init, false);
Share:
10,573
Hamish
Author by

Hamish

Updated on June 18, 2022

Comments

  • Hamish
    Hamish almost 2 years

    When I try to set the currentTime of the HTML5 Video element in Chrome 5.0.375.86 like:

    video.currentTime = 1.0;
    

    I am getting the following javascript exception:

    Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1
    

    It works fine in Safari. Has anybody experienced this??