How do I get Chrome to use the http http header to search in audio?

It seems that Chrome loads from the beginning of the file during cleaning for the buffered / downloaded duration, even if the number of search queries is 100%.

I set up a demo page, hard-coded into a 59-minute audio file stored on s3, but otherwise identical to the jPlayer demo:

http://beta.prx.org/jplayer_demos/demo-01-supplied-mp3-bm.htm

I am testing a Mac (10.6.8):

In Safari (5.1.4) , if you clear the loaded / buffered duration, it initiates another request using the range header and almost instantly receives sound from that point.

In Chrome (17.0.963.79) , when you clean out for a buffered / downloaded duration, it sits and rotates until it can load the sound from the beginning to the duration cleared.

Any idea how to make Chrome behave and use the range header when flashing the downloaded part of the audio file?

+4
source share
1 answer

I traveled with nuts with this. I also use a web player with jPlayer and they talk in the developer's guide about the Accepts-range HTTP header and how this is related to Chrome, but thanks to you I realized that there is a problem with HTML5 tags ... so much time wasted. FIX: add the parameter "solution: 'flash, html'" in the jPlayer constructor to change to flash by default.

+2
source

Source: https://habr.com/ru/post/1401488/


All Articles