HTML5 audio streaming/download. How do I get the file to cache/download fully?

1,447 views
Skip to first unread message

Rohan Abraham

unread,
Mar 13, 2014, 1:09:03 PM3/13/14
to chromium...@chromium.org
HTML5 audio on Chrome caches differently compares to Firefox and Safari (Desktop/mobile)

An example can be seen here (try the audio player instead of video):

On Chrome, the audio player downloads the audio only partially and does not go the whole distance.


Is there a way to get Chrome to download the whole audio file?

We need this because our app will require users to skip through to a different section which is not cached and causes higher wait times. It works well on Firefox/Safari/IE which downloads the whole file.

Zlip792 .

unread,
Mar 13, 2014, 4:22:09 PM3/13/14
to chromium...@chromium.org
Working fine here with Chromium 35.0.1889.0 (256846) on Windows 8.1 Pro 64-bit.
Chromium loads whole song.

Si Robertson

unread,
Mar 14, 2014, 10:09:46 PM3/14/14
to chromium...@chromium.org
It's working fine for me as well, latest version of Chrome running on Windows 7 64-bit.

Chrome is doing things properly, it's sending byte-range headers to the server which in turn is only returning part of the file. That allows the music to be played quickly (the entire file doesn't have to download) and allows users to skip to any position within the music (at which point Chrome will request another small chunk of the file from the server).

I wouldn't recommend doing this, but if you need to force browsers to download the entire file, you need to prevent the server sending the HTTP Accept-Ranges header (or set the header value to none).
Reply all
Reply to author
Forward
0 new messages