Reputation: 51
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
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