0

what I want to do is click the table of start tag or end tag, then the HTML5 audio will direct start from the exactly second after clicked the tag, any idea how to do it in jQuery ?

here is my code

<audio id="video" controls="controls" class="span4">
  <source src="file/test.mp3" type="audio/ogg">
  <source src="file/test.mp3" type="audio/mpeg">
  <source src="file/test.mp3" type="audio/wav">
  Your browser does not support the audio element. Please try other browser
</audio>

Here is my table to select the tag enter image description here

Here is what I found how to start the current second audio

$('#audio').bind('canplay', function() {
  this.currentTime = 29; // jumps to 29th secs
});

Thanks

Community
  • 1
  • 1
Oscar
  • 1,093
  • 4
  • 21
  • 31

0 Answers0