Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to adjust the volume of MpMoviePlayerController in Iphone sdk?

Tags:

objective-c

I need a help fro your side.I am using the MPMoviePlayerController and I need to mute the volume of the movieplayer forever.Is there any property to do this.Can you please post some code regarding to this.

Anyone's help will be much appreciated.

Thank you, Srilakshmi.

like image 539
Laxmi G Avatar asked Sep 25 '10 12:09

Laxmi G


1 Answers

[[MPMusicPlayerController applicationMusicPlayer] setVolume:(use a value between 0.0 and 1.0)]

If your MPMoviePlayerController uses the application audio session, this should work.

like image 125
Dev Kanchen Avatar answered Sep 17 '22 01:09

Dev Kanchen