I can't get the www-movie run on my screen

I can't get the www-movie run on my screen

I used the code from the site as is: http://unity3d.com/support/documentation/ScriptReference/WWW-movie.html

But it keeps getting stuck* in the while loop, so I guess it means the movie texture is never ready for some reason?

.

  • When I say "stuck" I mean the game is running and I can move my player around, but the movie texture yielding never gets done

.

I tried:

while (!movieTexture.isReadyToPlay){    
    // While movie is not ready - show status
    if (Input.GetButtonDown ("Fire1")) {
        Debug.Log ("movie Texture still not ready");
    }

    yield;
}

if (Input.GetButtonDown ("Fire1")) {
    Debug.Log ("movie Texture IS Ready To Play");
}

And whenever I press the "Fire1" button I get "movie Texture still not ready".

.

I also tried checking the www.progress - and it does get to 1 after a short while,

and www.error prints no error.

.

I am able to run this movie as texture when it is saved to my assets, but it does not run as www-movie.

not tested but i THINK it might work

    while (!movieTexture.isReadyToPlay){    

        yield;
    }
    if (Input.GetButtonDown ("Fire1")&&!movieTexture.isReadyToPlay) {
            Debug.Log ("movie Texture still not ready");
       }
    else if (Input.GetButtonDown ("Fire1")&&movieTexture.isReadyToPlay){

          Debug.Log ("movie Texture ready");
}

if you’re trying to load a local file, you have to do it the hacky way: "file://c:/sample.ogg" for instance. also, it has to be an ogg file.

if you’re on csharp, your loop is wrong. should be something like while (!movieTexture.isReadyToPlay) yield return 0;