Using: Unity 2018.2.7f1, but tested and saw similar behavior on 2018.3. Happens in Editor and on iOS as well.
Hello! We have been using Unity’s VideoPlayer to display streamed animated GIFs. However, we wanted to start using the “prepareCompleted” callback, but have been seeing some weird behavior. It appears as though the callback is only triggered the first time a video is prepared. After that, when using Prepare(), we only see the prepareCompleted event AFTER we try to play the video, which makes it somewhat worthless. This happens even if we explicitly Stop the previous video we were using. It also still happens with different VideoPlayers; we used two different video players and wanted to cycle the preparations between them, but we still only ever receive the initial callback from the first VideoPlayer, and the second player never manages to trigger the callback properly.
I guess my question is; does anyone know any good workarounds for this, or how to get Prepare() to behave properly? I’d rather not have to switch to a different video play system, but it’s starting to look as though that might be necessary.