Closed JJ-Atkinson closed 4 years ago
Is this a situation where you don't know the filetype? If you do, you can specify it with format
: https://github.com/goldfire/howler.js#format-array-.
Not on the client. The server knows, but I don't have a way to put that in the request url without redirecting. I did put the Content-Type
header in the response with the correct file type though, and I figured that would make it work ok. Chrome plays the files fine, but howl complains that it can't find the file type.
I'm working on a media player app using howler.js, and I've run into an interesting problem. It appears that if I load a file with a URL that does not have the file extension specified, it won't allow me to pause and resume. For instance:
The last
player.play()
will start from the beginning of the track, whereas using a URL with a file extension (https://howlerjs.com/assets/howler.js/examples/player/audio/rave_digger.mp3
, for example) resumes 5 seconds in. Also, it appears howl doesn't take into account theContent-Type
of the response.