- Home /
Handheld.PlayFullScreenMovie loop Video
Hi all,
Quick question which I hope someone has found the answer to..
When using the code
Handheld.PlayFullScreenMovie("movie.mp4", Color.blue, FullScreenMovieControlMode.Hidden, FullScreenMovieScalingMode.Fill);
How can you make it so the video will loop / start over as soon as it finishes?
Thanks in Advance
Problem is that Unity is paused while running the video. As a result you do not control any of the input... You can stop the video by tapping but I would guess this is out of Unity control, only the player returns control to Unity when it detects a tap, but Unity is sleeping all the way until woken up by the player.
So you could out the call in a loop but you can only skip to the next run and cannot really get out of it as you cannot pass any delegate to the method (that would be helpful).
you can have the Handheld call in a coroutine function and call the function recursively.
Answer by kayrumet · Nov 25, 2015 at 09:00 PM
add this code create the function update and paste the code that play the video, for me work void Update() { Handheld.PlayFullScreenMovie("movie.mp4", Color.blue, FullScreenMovieControlMode.Hidden, FullScreenMovieScalingMode.Fill); }