You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The soundjs play failed when the source url is a RESTFUL api #306
This is mostly likely caused by the file path for your sound containing a query string (specifically "?"). This isn't incorrect, but PreloadJS/SoundJS doesn't accept it as a valid file path.
Info for solving this:
The PATH_PATTERN for PreloadJS is
Thank you, that regex patter doesn't work for me either, but removing the ? exclusion from the original pattern did the job.
Will we see something about this consortium on createjs.com ? or here ? the slack link is not valid anymore.
Activity
lannymcnie commentedon Jul 30, 2018
This is mostly likely caused by the file path for your sound containing a query string (specifically "?"). This isn't incorrect, but PreloadJS/SoundJS doesn't accept it as a valid file path.
Info for solving this:
The PATH_PATTERN for PreloadJS is
Specifically, the _parsePath method returns false when it encounters this path.
A saved RegExr pattern is here: https://regexr.com/3t6d0
[Updated Link: https://regexr.com/343kr]
Just accepting the query string may cause issues with other parts of PreloadJS/SoundJS, so it will need to be tested thoroughly.
tjutasi commentedon May 26, 2020
I run into a similar problem, but the regexr link above takes me to the default page on regexr.
Does happened something with this since 2018 ?
lannymcnie commentedon May 26, 2020
Nothing has changed in the library (see discussion here)
The RegExr pattern can be found here: https://regexr.com/343kr - not sure why the old one no longer works.
tjutasi commentedon May 26, 2020
Thank you, that regex patter doesn't work for me either, but removing the ? exclusion from the original pattern did the job.
Will we see something about this consortium on createjs.com ? or here ? the slack link is not valid anymore.