1 decade ago by SlouchCouch
I have two music files in both ogg and m4a format, but chrome uses the.ogg version.
Whenever i have both music files to preload in the code in my game's main about 50% of the time chrome will hang loading the 2nd one. It doesn't matter which one is second. It will always load the first one then 50% of the time the 2nd one will start to load then hang.
Works fine in firefox (which also uses ogg) and safari (which is webkit but uses the m4a files instead).
Then if i refresh there's about a 50% chance it will hang again trying to load the 2nd son.
If I comment out either one of the songs preventing it from preloading the loader will load every time with no problems.
Anyone run into anything similar to this? I'm loading all my stuff locally on apache running on my local machine, so it should load easily.
-dave
Whenever i have both music files to preload in the code in my game's main about 50% of the time chrome will hang loading the 2nd one. It doesn't matter which one is second. It will always load the first one then 50% of the time the 2nd one will start to load then hang.
Works fine in firefox (which also uses ogg) and safari (which is webkit but uses the m4a files instead).
Then if i refresh there's about a 50% chance it will hang again trying to load the 2nd son.
If I comment out either one of the songs preventing it from preloading the loader will load every time with no problems.
Anyone run into anything similar to this? I'm loading all my stuff locally on apache running on my local machine, so it should load easily.
-dave