Languages

Menu
Sites
Language
Buffer progress for web audio player exihibits abnormal behavior

Hi,

I am trying to implement audio player using HTML 5 audio tag, where I have give autobuffer and preload="auto" attribute.

The issues I am facing are as under:

Case-1: Incomplete Buffering

a. Play any supported audio song using a valid URL, I can see buffer progress but when I turn off wi-fi/data network and restart the wi-fi / data network,

buffering does not resume automatically.

 

Case-2: Buffering complete

a. Whenever I try to seek through buffered area, buffering starts again, ideally it should seek and play seamlessly throughout the buffered area, Do I need to implement cache for storing buffered data.

 

Kindly provide your insight on this issue.

Responses

4 Replies
Vikram

Hi,

Case-1: can you try to using autoplay="autoplay"

Case-2: I think it is no need to implement cache for storing buffered data. The attribute of autobuffer already implement. autobuffer used to set whether the audio buffer automatically. If set, the page is loaded, the audio will automatically download the buffer, when users click the play button, 
at least part of the audio has been can play directly without having to wait.

Palitsyna

Hello,

for the first case I suggest you to use autoply attribute, as Vikram said. It sets and returns whether the audio should start playing as soon as it is loaded. You can find more information about this attribute here: http://www.w3schools.com/tags/av_prop_autoplay.asp

AVSukhov

Hello,

Good guide about HTML 5 Audio & Video can find here:

http://www.tutorialspoint.com/html5/html5_audio_video.htm

Palitsyna

Hello,

another good HTML5 tutorial could be found here: http://www.html5tutorial.info/html5-audio.php