Is there a way to preload the duration before pressing play the first time on an audio player. I know you can use { duration: 120 } which is fine if every clip is 120 seconds long. I do not have the information available in the database to dynamically populate this variable so there must be another way to tweak the MediaElement.JS script to do it.
Any thoughts anyone?
Let the browser load the metadata by setting preload attribute.
Syntax:
<audio preload="auto|metadata|none">
http://www.w3schools.com/tags/att_audio_preload.asp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With