Sound, redirection and file extension

I think Sound has some problems with url redirection.
I’ve made a little playground here

The audio file url is behind redirection and doesn’t work,
if I add a fake query params with the file type like
instead it works, even if I use the wrong filetype (like .wav)

is this a bug or working as intended?

cc @docEdub

Ya, by default Sound checks the URL’s file extension to know which codec to check it against. There is an option named skipCodecCheck you can set to true to disable this. In the playground the option is called out as skipCodecCheckSearch, which won’t do anything. Change it to skipCodeCheck and it will work like you want.

Here’s a working version of the playground

1 Like