I am trying to implement HandHeld.PlayFullScreenMovie for android in unity to run 360 Videos but not able to see the video. Only audio is playing although i have placed the .mp4 file in StreamingAssets Folder.
Blockquote
using UnityEngine;
using System.Collections;
public class MoviePlayerAndroid : MonoBehaviour{
private string fileName = “CannonFire”;
private string extension = “.mp4”;
// Update is called once per frame
void Update () {
}
void Start () {
StartCoroutine(PlayStreamingVideo(fileName + extension));
}
private IEnumerator PlayStreamingVideo(string url)
{
Handheld.PlayFullScreenMovie(url, Color.black, FullScreenMovieControlMode.Full, FullScreenMovieScalingMode.AspectFill);
yield return new WaitForEndOfFrame();
yield return new WaitForEndOfFrame();
Debug.Log("Video playback completed.");
}
}
Blockquote