Skip to content Skip to sidebar Skip to footer

Trouble With Audio Tag, Jquery, And Currenttime

​ Why is it that this jQuery/JavaScript works: var audio = $('audio').get(0); audio.play(); But t

Solution 1:

Try

var audio = $('audio');
audio.bind('canplay', function() {
        this.currentTime = 20;
});
audio.get(0).play();

Post a Comment for "Trouble With Audio Tag, Jquery, And Currenttime"