Jump to content

Audio Format Compatibility


theNeedle
 Share

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.

Link to comment
Share on other sites

  • 3 weeks later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...