Open paip opened 8 years ago
You can set a "type" on any load items that are ambiguous. Currently PreloadJS uses file extensions as the default way to determine type, so things like "mp4" can be result in a false identification.
loadQueue.loadManifest(
{src:"video.mp4", id:"video", type:"video"},
{src:"audio.mp4", id:"audio", type:"sound"}
);
It was the first thing i've tried, but doesn't work. It's been marked as a bug on another thread: https://github.com/CreateJS/PreloadJS/issues/140
Anyway, my issue isn't with that bug, but with the one that makes firefox stop playing sounds...
The sound/video issue is now resolved in NEXT (Dec 12, 2016)
Not sure about the audio stopping. Firefox has a known issue (#241) that could be related. Will definitely look into this.
I know it has been some time since this was asked ,but if you still have this issue persisting, any chance you can post some code? Could be something else (registering plugins?) that does it.
Thanks
I'm developing a game with different preload queues (mainQueue, levelQueue, soundQueue). First of all, i had to create a separate queue for audio, because if i have sound and video in the same queue, preloadjs tries to load video as audio and fails.
So, after loading the mains assets, i load the sounds and then the first level assets. There, the sounds work ok. After finishing the level 1 and trying to load the level 2 assets, the sound stops. It only happens on firefox (chrome is ok), and i tracked the issue down to calling the "loadManifest" method. Notice that this method is called on levelQueue, which has nothing to do with soundQueue.
I'm using all latest versions.