theNeedle

Audio Format Compatibility

Recommended Posts

I know we can pass different sound formats in phaser3 to let browser choose the compatible format.

1. According to this this and this mp3 is supported in most of the major browsers. So is it wise choice to use only mp3 format? if not then which format should be used with mp3 to support wide range of browsers?

2. Does this issue with ios 9 that required user engagement to start audio playback is handled by Phaser 3? From documentation it looks like WebAudioSoundManager has unlock method to resolve this issue but I'm not quite sure.

Share this post


Link to post
Share on other sites

1. I would use m4a as primary choice, and off as fallback.

m4a has the same compatibility range on browsers as mp3, but sounds better for the same file size, and loops better for background music. 

ogg is the fallback for the uncommon occasion m4a isn't supported.

 

2. ALL mobile browsers now require a user touch to enable unlocking audio. If you have a 'touch here to continue' kinda screen after loading, that'll get you the touch you need

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.