- Home /
VideoPlayer.prepareCompleted
So I can see others have had this issue before but I really don't know what the best way is to get around this issue. Due to the missing functionality of the VideoPlayer a lot of people have suggested hacks and workarounds. I find it kind of unacceptable to use hacks and workarounds that have been proposed since 2017.
The scripting API says of the .prepareCompleted callback:
Invoked when the VideoPlayer preparation is complete. When starting playback after this callback is invoked, frames will become available instantly.
As you can see in the screenshot below, I call the Prepare(), I get the preparecompleted callback and the image that you seeing the corner of there, is the previous video that was loaded, stays like that for 1-2 seconds and only then starts to play the new video.
I'm just wondering if there is an official answer as to why this callback does not work? I am loading the videos from a local device, there is no download, but the videos are rather large files. Some start instantly some take a while to start. How can I check the video, regardless of how large the file is, is ready to play?
Your answer
Follow this Question
Related Questions
Unity WebGL video player on mobile 0 Answers
Video Player Render Texture goes black randomly 0 Answers
how to execute two line of code simultaneously.??? 0 Answers
How to put replay button 1 Answer
Videos Play with Weird Shadow Artifact 0 Answers