Sound, redirection and file extension

I think Sound has some problems with url redirection.
I’ve made a little playground here https://playground.babylonjs.com/#RD88Q4#2

The audio file url is behind redirection and doesn’t work,
if I add a fake query params with the file type like
https://storage.ws.pikkart.com/storage/be750524-c8d4-4ca3-a1c9-e7a6d093c90b?.mp3
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 https://playground.babylonjs.com/#RD88Q4#3.

1 Like