Unity Issue Tracker - OnFrameReady is called twice when setting the time in VideoPlayer
Fixed
UUM-40971
OnFrameReady is called twice when setting the time in VideoPlayer
Unity: Video
Fixed
2023.3.X
2023.2.X
2022.3.X
2021.3.X
Won't Fix
2023.1.X
Prevent updating the current texture and time when seek is ongoing, because the current time would become undefined, leading to possibly redundant calls to seekCompleted.
Reproduction steps:
1. Open the attached project “VideoPlayerBug“
2. Open the Scene “Assets/New Scene”
3. Build and run the project (File > Build And Run)
4. Switch to the Unity Editor
5. Switch to the browser
6. Open the browsers Console window (RMB > Inspect > Console)
7. Press the Button “Play”
8. Press the Button “Pause”
9. Press the Button “Set time = 2”
10. Observe the browsers Console window
Expected result: There are two new OnFrameReady logs
Actual result: OnFrameReady is called once