x


After playmovie there is no sound in game in iOS 3.1.3

I found that there will be no sound in iOS 3.1.3 after I call iPhoneUtils.PlayMovie to play a movie(the movie still have sound).

Test on ipod 3Gen 8GB with iOS 3.1.3, but test on ipod 3Gen 32GB with iOS 4 have no problem.

My code like this:

    if (nextLevelNo == 201 && GameState.inStoryMode == true)
    {
        yield return null;
        iPhoneUtils.PlayMovie("part1.mp4", Color.black, 
            iPhoneMovieControlMode.CancelOnTouch, iPhoneMovieScalingMode.AspectFit);
        GameState.gameStartLevelNo = nextLevelNo;
        yield return null;
        // fix bug: screen will darken after played movie
        iPhoneSettings.screenCanDarken = true;
        iPhoneSettings.screenCanDarken = false;
        // display loading image
        guiTexture.enabled = true;
        Application.LoadLevel("GameScene");
    }
more ▼

asked Feb 15 '11 at 02:53 AM

bman gravatar image

bman
1 2 2 2

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

1 answer: sort voted first

I guess you are using older Unity version. Try upgrading to Unity 3.2.

more ▼

answered Feb 28 '11 at 03:57 PM

Mantas Puida gravatar image

Mantas Puida
871 1 4 10

(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
x13

asked: Feb 15 '11 at 02:53 AM

Seen: 799 times

Last Updated: Feb 15 '11 at 02:53 AM