servusdei Posted October 11, 2017 Share Posted October 11, 2017 Hi, So, the iphone plays game sound even when the mute switch is on; Is there a way to detect the state of the mute switch so that I make the game conform to it and not play any sound ? Quote Link to comment Share on other sites More sharing options...
rich Posted October 11, 2017 Share Posted October 11, 2017 There's no way to detect this from JavaScript. Also, it's worth understanding that the iOS side switch isn't a global on/off mute button. It splits into two categories: General Audio, and Ringers & Alerts. I.e. an iPhone can have its ringer volume set to maximum but its media volume muted, or the opposite. Which means even with the side switch 'on' it can still play audio on websites (and it's not your fault, it's just how iOS works) servusdei 1 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.