I am using XamarinMediaManager
(built using MPMusicPlayerController
) to Build an audio player for iOS, i am looking for a way to mute the sound on a button click, this works perfectly on iOS 9:
MPMusicPlayerController.ApplicationMusicPlayer.Volume = 0
But it looks like it is deprecated on newer versions: https://developer.apple.com/documentation/mediaplayer/mpmusicplayercontroller/1624567-volume
How to achieve the same thing using another way? (i am not looking to build an entire volume manager, i just want to set the volume).
Any help would be appreciated.