Reputation: 4083
Hi there I have an app that play short sound clips as the main functionality. If the user happened to have the volume to mute or too low, they won't be able to hear the sound clip and the app will appear to be broken.
Is there a way to detect the sound volume so that i can display a message to the user to indicate that their sound is too low or off and they need to adjust the volume?
I searched through stackoverflow and google and it seems like i can only find article on how to change the volume or detecting volume changed event. Thank you.
Upvotes: 3
Views: 3932
Reputation: 29925
You can use the MPMusicPlayerController
It has the property volume
which will let you read the volume level.
Upvotes: 3