x


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!

more ▼

asked Jan 25 '10 at 09:41 AM

BogdanDude gravatar image

BogdanDude
268 15 17 32

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Unity iPhone plays movies via Apple MediaPlayer framework (MPMoviePlayerController). Current implementation of MediaPlayer does not respect "mute" button.

more ▼

answered Jan 26 '10 at 04:32 PM

Mantas Puida gravatar image

Mantas Puida
871 1 4 10

(comments are locked)
10|3000 characters needed characters left

This is not a problem specific to Unity iPhone. Try the YouTube app. Same behavior. Apple wants you to do it in software.

more ▼

answered Jan 26 '10 at 11:56 PM

Jessy gravatar image

Jessy
15.6k 72 95 196

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1999
x1027

asked: Jan 25 '10 at 09:41 AM

Seen: 2910 times

Last Updated: Jan 25 '10 at 09:41 AM