Hello world! I’m having problems playing a video on a scene I’m doing. The scene only plays the video and then jump to another scene. All I need is the scene to play a video in an android device, still, I don’t know what I’m doing wrong, but there’s no video the camera shows the skybox and jumps to the next scene instantly. (The video is in the assets folder, named “Intro.mp4” and the script is attached to an empty).
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class VideoController : MonoBehaviour {
void Start () {
StartCoroutine(PlayMovie());
}
private IEnumerator PlayMovie() {
Handheld.PlayFullScreenMovie("Intro.mp4", Color.black, FullScreenMovieControlMode.Full, FullScreenMovieScalingMode.AspectFill);
yield return new WaitForEndOfFrame();
yield return new WaitForEndOfFrame();
SceneManager.LoadScene("MainGUI");
}
}