Hi everyone, I’m trying to load a video as a MovieTexture using WWW but my script is not working. It shows this error: MoviePlayback::LoadMovieData got NULL
Here is my script, hope you guys can give me a hand with this:
public WWW wwwData;
public string url = "http://unity3d.com/files/docs/sample.ogg";
public GUITexture gt;
void Start() {
wwwData = new WWW(url);
gt = GetComponent<GUITexture>();
gt.texture = wwwData.movie;
}
void Update() {
MovieTexture m = gt.texture as MovieTexture;
if (!m.isPlaying && m.isReadyToPlay)
m.Play();
}
Regards,
Santhiago