howler.js icon indicating copy to clipboard operation
howler.js copied to clipboard

preload: ['metadata'], not working

Open tofolux opened this issue 3 years ago • 2 comments

The Problem

using preload: ['metadata'], does not work

Reproducible Example

No response

Reproduction Steps

var fullAudio = new Howl({ src: ['src], preload: ['metadata'], html5: true, });

When checking network resources in Safari it shows it loads the entire file.

Possible Solution

No response

Context

No response

Howler.js Version

v2.23

Affected Browser(s)/Versiuon(s)

No response

tofolux avatar Aug 21 '22 21:08 tofolux

@tofolux im facing same issue here, in local dev everything works fine, but once deployed, its downloading entire file, and on every seek action it'll download an extra file. Did you resolve it?

ghostneneji avatar Nov 13 '22 17:11 ghostneneji

@tofolux @ghostneneji

It might be a bit late, but by default, Howler uses the Web Audio API when available, not HTML5 Audio. The preload option is only available for the latter.

To make preload work, you'll need to set the option: html5: true

benjaminbarbe avatar Jul 08 '24 10:07 benjaminbarbe