I have this MPMovePlayerController and a custom slider (which is not quite a slider, but it has the same purpose). Considering that my “slider” can return any float value I need, how can I change the volume of the played movie?
So far I’v tried hacking MPVolumeView to programmatically set a value, w/o success.
iOS 3.0 – 7.0
Turns out that
works for any sound in the app, even the MPMoviePlayerController, if it’s using the main Audio Session. O, it works only on the device, not the simulator. More info here:
https://developer.apple.com/documentation/mediaplayer/mpmusicplayercontroller?language=objc
Update
Volume is deprecated in iOS 7.0.