0

I really need to buffer entire audio/video before playing it. On normal case browser will buffer only some portion of audio/video. How to force browser to buffer 100% video before playing it?Or how to trigger buffer after playing it once.

Niroj Adhikary
  • 1,573
  • 12
  • 28

1 Answers1

0

Maybe in jQuery:

$(document).ready(function(){
var audioElement = document.createElement('audio');
    audioElement.setAttribute('src', 'audio_file.mp3');
    audioElement.play();

});

or like this: How do you check if a HTML5 audio element is loaded?

Community
  • 1
  • 1
Cieniu
  • 1
  • 2