- Home /
Question by
fernandes456 · Mar 05, 2012 at 02:57 AM ·
iosmobilevideosplash screen
Opening video
Hello, I'm trying to play a video after the splash screen.
I used the following code.
The documentation of Unity says: "Calling this function will pause Unity during movie playback. When playback finishes Unity will resume.".
Unfortunately, the sound start to play before the video end. Someone know how to avoid this behavior? Is something like delegate to tell the Unity that's the video is over?
I though in put something like a "sleep" before the video start, but this is ugly like hell :-P
void Start () {
iPhoneUtils.PlayMovie("LOGO_INTRO.mp4", Color.black, iPhoneMovieControlMode.CancelOnTouch);
SoundManager.GetInstance().StopBGM();
SoundManager.GetInstance().PlayBGM(SoundSelection.bgmId, true);
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613064751im_/https://answers.unity.com/themes/thub/images/avi.jpg)