Reputation: 25779
I can successfully embed the audio tag into my websites and play them. Unfortunately setting the currentTime to zero throws an error in every web browser I try.
How do I rewind the audio clips to the beginning?
Upvotes: 1
Views: 2068
Reputation: 9037
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.
Upvotes: 1