raviraja
raviraja

Reputation: 51

Playing a video in android using unity3d

How can I play a mp4 video file for Android in Unity? I know there is a Movie Texture for PC, but how do I play videos in Android?

Upvotes: 2

Views: 5708

Answers (1)

Rachel Gallen
Rachel Gallen

Reputation: 28553

Movie textures are not supported in android. You have to use Handheld.PlayFullScreenMovie

so your function will be something like

function Start () {
        Handheld.PlayFullScreenMovie ("yourfile.mp4", Color.black, FullScreenMovieControlMode.CancelOnInput);
    }

Upvotes: 2

Related Questions