I know this question has been asked in numerous threads; however, none of the answers have worked for me, so I am asking again (and I apologize if this should have been asked in a different area, I’m still new to Unity and the forum.)
How do I use ‘Handheld.PlayFullScreenMovie’ to play a movie in my Android app?
My code is:
using UnityEngine;
using System.Collections;
public class nGPm : MonoBehaviour {
void Start()
{
Handheld.PlayFullScreenMovie("http://www.movie.address/title.mp4", Color.red, FullScreenMovieControlMode.Full);
}
}
When I play this on my Android device I get simply a blue screen with black bars. The color red in the code is ignored, and no video or movie controls are displayed. From everything I’ve read, this seems like it should be such a simple task, but I have had no luck. Any help will be greatly appreciated.
The code below seems to be correct, are you sure that you are testing on a android device ? (On Unity Editor, it couldn’t work). On PC, you will need movie texture and .ogv or ogg.
Yup, I tried it on my Alcatel Onetouch, which has properly played all of my previous projects. Should I be placing the code in something other than Start()?