开发者

<audio> tags rewind

I can successfully embed the audio tag into my websites and play them. Unfortunately sett开发者_开发问答ing the currentTime to zero throws an error in every web browser I try.

How do I rewind the audio clips to the beginning?


Your resource has to be seekable or it will throw an exception if you try to set the currentTime attribute. Also, you only want to set currentTime to the range specified by the seekable attribute. The range starts at startTime and goes to duration.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜