Respecting ringer/media volume?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Respecting ringer/media volume?
mobilePlaySoundOnChannel doesn't seem to respect the system's volume settings, playing at 100% volume when the system is set to mute or vibrate. Is there a way to get the system volume setting or force the playback system to respect it?
Re: Respecting ringer/media volume?
I would have presumed there would be an accessible pre-made channel like "system", from which we could derive the volume settings via something like mobileSoundChannelVolume("system") to find out if the user has muted the device in a movie theatre. This is an absolutely essential function for any app/game, I will be very surprised if it turns out LiveCode doesn't have this. The only other method I can think of would be trying to interface to android API via java to try to extract that setting, which is very unproven if java interfaces can be established on android. Nobody knows the answer?
Re: Respecting ringer/media volume?
Discovered mobilePlaySoundOnChannel is respecting android device's Media volume level, not the Ringer volume level. This is why it still plays with full loudness even when the user has their phone set to silent.
I have confirmed that iphonePlaySoundOnChannel does not work for android, tested on mutliple actual devices, these commands are not synonyms despite what the documentation says.
I have confirmed that iphonePlaySoundOnChannel does not work for android, tested on mutliple actual devices, these commands are not synonyms despite what the documentation says.