Hi, I am creating something that would trig sound, and the function game.playSound() works well for me until last week. However, I don’t know why it cannot work now.
I was just trying to use game.playSound again, but I’m getting this error. I think it might be related to a CORS problem. If that is the issue, is there a way to upload the sound file to the Gather CDN like we do for images?
I updated my bucket with a CORS policy, and it seems to be working now.
Just out of curiosity, was requiring a CORS policy added in the latest update on the client-side? I know we used to use this same S3 bucket before without a CORS policy, and we never had an issue previously.
Is there any documentation on this? I know a number of the Ambassadors were dealing with sound issues a week or so ago, and that may have been the issue.
Ive checked if I can edit something in DigitalOcean, but the Projekt there doesnt have any relateable Options. Ive found some Options for Apps and Spaces at DigitalOcean, but thats not the type of the AzuraCast Application Im using…
Can anyone please help to find clarification on where the problem is burried?
This looks like a use case we internally don’t support so the recent changes didn’t cover (but the previous implementation would allow to). It should be easy to restore it, by adding an additional flag for “streams”, do you currently use this with the game.playSound API?
Thanks for the update. Could you expand on what these options actually do? Specifically the isPositional and stream. Documenting changes in the functionality will help as the sound features change in the next quarter (per Liz on Slack).
You can ignore all the other properties as they already existed and are not required for this use case. stream is now being added to support range requests.
I’m trying with sound URLs with CORS enabled. Form my server and from examples in this thread. fetch(sound).then(res=>console.log(res.statusText)) prints OK in the browser console.
I did try OGG and MP3 files, and also played it in the browser to ensure that works.
I did try the examples bellow on Chrome and Firefox: