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

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.