Search Issue Tracker
By Design
Votes
0
Found in
2021.3.26f1
2022.3.0f1
2023.1.0b19
2023.2.0a17
Issue ID
UUM-37645
Regression
No
VideoPlayer.Time is not updated when seeking is completed
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Enter the Play Mode
4. Click somewhere further or back on the slider
5. Observe the Log Messages in the Console
Expected result: Log Message “Time after seeking: {value}“ is the same value as “Setting Time from - to {value}”
Actual result: Log Message “Time after seeking: {value}“ is not the same value as “Setting Time from - to {value}”
Reproducible with: 2021.3.26f1, 2022.3.0f1, 2023.1.0b19, 2023.2.0a17
Reproduces on: Windows 10 Enterprise 21H2
Notes:
- On Windows Standalone or Editor after clicking somewhere further or back on the slider it is flipping back and forth for a frame. In the Oculus Quest Player, it actually takes multiple frames. That might be the reason for “Time after seeking: {value}“ being incorrect
- It reproduces on Android
- It has supposedly been fixed according to [https://issuetracker.unity3d.com/issues/videoplayer-dot-frame-returns-last-frame-of-the-paused-video-instead-of-frame-that-is-declared-via-ui-or-script|https://issuetracker.unity3d.com/issues/videoplayer-dot-frame-returns-last-frame-of-the-paused-video-instead-of-frame-that-is-declared-via-ui-or-script] and [https://issuetracker.unity3d.com/issues/videoplayer-dot-frame-and-videoplayer-dot-time-do-not-get-updated-after-seeking-a-video|https://issuetracker.unity3d.com/issues/videoplayer-dot-frame-and-videoplayer-dot-time-do-not-get-updated-after-seeking-a-video] But it is still an active bug
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Invalid SortingGroup index set in Renderer" errors when making many modifications in same frame
- Crash on GizmoBufferSizeHistory::GetBuffer() when opening a specific scene
- RenderTexture is not initialized when it is set as Material's Texture
- Branch node outputs a random value instead of a constant on the false conditon
- Shader Graph Material is left in broken state when switching from a .git branch with no HDRP to a branch that contains HDRP
Resolution Note:
VideoPlayer.time and VideoPlayer.frame are only updated when the next frame gets produced, which is not yet the case within the seekCompleted handler. To execute logic after seek completes and the new frame is displayed, the VideoPlayer.frameReady event can be used.