Recently I migrated my project from PixiJS v6 to v7, came along with @pixi/sound v5.x, only to find that soundAsset refused to load ogg files, as utils.supported['ogg'] turned out to be false on Safari, iPhone.
I didn't even notice this problem when I was working on PixiJS v6 with @pixi/sound v4.x, so I tested my v6 project on iPhone again. All ogg sounds weren't played while there was no warning or exception had been thrown.
After taking a quick look at the sourcecode of v4.x, it seems like utils.supported is not used for detecting valid extensions, instead, it simply registers all extensions using utils.extensions.
Is this the intended behaviour? If not, maybe utils.extension have to be filtered before SoundLoader is added into PixiJS?
Recently I migrated my project from PixiJS v6 to v7, came along with @pixi/sound v5.x, only to find that
soundAsset
refused to load ogg files, asutils.supported['ogg']
turned out to be false on Safari, iPhone. I didn't even notice this problem when I was working on PixiJS v6 with @pixi/sound v4.x, so I tested my v6 project on iPhone again. All ogg sounds weren't played while there was no warning or exception had been thrown. After taking a quick look at the sourcecode of v4.x, it seems likeutils.supported
is not used for detecting valid extensions, instead, it simply registers all extensions usingutils.extensions
. Is this the intended behaviour? If not, maybeutils.extension
have to be filtered beforeSoundLoader
is added into PixiJS?