Hello all!
I do this way:
videoPlayer.url = filename;
videoPlayer.Prepare();
videoPlayer.Play();
And in the next line I still get videoPlayer.length == 0d
until the next frame. Is there any way to force Prepare()
to take effect immediately, without waiting for Update (and ~0.2 seconds further)? I tried while (!videoPlayer.isPrepared) Sleep(100);
but it ends up in an infinite loop, most likely with Prepare()
relying on some internal events to proceed with processing the video.