- Home /
iPhone Mute button not working when playing movie
I'm using this code to play an intro movie:
IEnumerator Start() { yield return 0; iPhoneUtils.PlayMovie("GameIntro.m4v", Color.black, iPhoneMovieControlMode.CancelOnTouch);
Application.LoadLevel("MainMenu");
}
The mute button on the side of the iphone (3G) is not muting the sound in the video. I'm building for the 3.0 OS target. It seems there's a 'ringer volume' and a separate volume for the iPod music.
Please let me know if you know any way to fix this.
If it's not possible directly from Unity, does anyone have a quick code sample to place in an Xcode .mm file, to use MPMoviePlayerController and call it from Unity Advanced, to play the movie file (and work with the mute button on/off) ?
Thanks a lot!
Answer by Mantas-Puida · Jan 26, 2010 at 04:32 PM
Unity iPhone plays movies via Apple MediaPlayer framework (MPMoviePlayerController). Current implementation of MediaPlayer does not respect "mute" button.
Answer by Jessy · Jan 26, 2010 at 11:56 PM
This is not a problem specific to Unity iPhone. Try the YouTube app. Same behavior. Apple wants you to do it in software.
Your answer
![](https://koobas.hobune.stream/wayback/20220612023651im_/https://answers.unity.com/themes/thub/images/avi.jpg)