AndroidPlayMp4

using UnityEngine;
using System.Collections;

public class AndroidPlayMp4 : MonoBehaviour {

void OnGUI()
{
if (GUI.Button(new Rect(20, 10, 200, 50), "PLAY ControlMode.CancelOnTouch"))
{
Handheld.PlayFullScreenMovie("Larva.mp4", Color.black, FullScreenMovieControlMode.CancelOnInput);
}

if (GUI.Button(new Rect(20, 90, 200, 25), "PLAY ControlMode.Full"))
{
Handheld.PlayFullScreenMovie("Larva.mp4", Color.black, FullScreenMovieControlMode.Full);
}

if (GUI.Button(new Rect(20, 170, 200, 25), "PLAY ControlMode.Hidden"))
{
Handheld.PlayFullScreenMovie("Larva.mp4", Color.black, FullScreenMovieControlMode.Hidden);
}

if (GUI.Button(new Rect(20, 250, 200, 25), "PLAY ControlMode.Minimal"))
{
Handheld.PlayFullScreenMovie("Larva.mp4", Color.black, FullScreenMovieControlMode.Minimal);
}

}

}

时间: 2024-10-16 03:01:23

AndroidPlayMp4的相关文章