<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.
精彩评论