midozo Posted April 7, 2019 Share Posted April 7, 2019 On iPhone and iPad, games should mute any sound effects or background music when silent mode is enabled how to fix this error game html5 Quote Link to comment Share on other sites More sharing options...
Noel Posted April 8, 2019 Share Posted April 8, 2019 It is written in the documentation: https://developers.facebook.com/docs/games/instant-games/getting-started/launch-checklist#game-checklist You must use Web Audio (or you can use Howler.js). Quote Link to comment Share on other sites More sharing options...
midozo Posted April 8, 2019 Author Share Posted April 8, 2019 thanks for your answer ... I want to ask you if "ogg" is a Web Audio ? Quote Link to comment Share on other sites More sharing options...
bubamara Posted April 8, 2019 Share Posted April 8, 2019 ogg, mp3, m4a are file formats. What you should use is Howler library (for example) to play them in your game : https://github.com/goldfire/howler.js/ https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API Quote Link to comment Share on other sites More sharing options...
midozo Posted April 8, 2019 Author Share Posted April 8, 2019 thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.