html - HTML5 Audio onLoad -


How can I get a callback when I'm ready to play audio tags? (Tell the user that when your own control is implemented)

Use Chrome.

This is done only on the video element but it should work for audio.

First of all, you can not bind this phenomenon, I do not know why it does not work. So you have to use setTimeout.

Example using jQuery:

  $ (function () {var audioReady = function () {if (youraudioelement.attr ('readyState')) {Warning ( More information:        Html>

Comments