如何检测并能够点击HTML5音频?

时间:2013-11-04 03:15:37

标签: javascript jquery html html5 audio

我想要做的是单击开始标记或结束标记的表格,然后HTML5音频将直接从点击标记后的第二个开始,任何想法如何在jQuery中执行?

这是我的代码

<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>

这是我的表格来选择标签 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
});

由于

0 个答案:

没有答案