Search Issue Tracker
By Design
Votes
0
Found in
2018.4.32f1
2019.4
2019.4.21f1
2020.2
2021.1
2021.2
Issue ID
1316930
Regression
No
[macOS] VideoPlayer.clockTime gets stuck for a few frames when starting to play a video
Reproduction steps:
1. Open attached project "VideoPlayer_Bug_Report" and load Scene "VideoScene"
2. Enter Play Mode
3. In the Game window check "Log On Update"
4. Click "Prepare", "Seek to frame 100", "StepForward" and "Play" in this order
5. After a couple of frames of the video play, exit Play Mode
6. Observe the Console output immediately after the button "Play" was pressed
Expected result: VideoPlayer.clockTime starts updating immediately after VideoPlayer.isPlaying is set to True
Actual result: VideoPlyaer.clockTime starts updating only after a couple of frames pass
Reproducible with: 2018.4.32f1, 2019.4.21f1, 2020.2.6f1, 2021.1.0b8, 2021.2.0a6
Notes:
- Does not reproduce on Windows
- A video of the issue is attached
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
- IMGUI Debugger Instructions are flickering when the Inspected View is set to Scene and mouse cursor is moved over the Scene View
- [Windows] “GUI Window tried to begin rendering while something else had not finished rendering!…” Error is thrown after opening “Insert a template into current VFX Asset” window
- No InvalidOperationException error thrown when Active Input Handling is set to "Input System package" and "OnMouseDown()" is triggered
- Crash on mdb_xcursor_init1 when opening a specific project
- HDRP Decal Projector uses “Default” layer as main layer in “Rendering Layer Mask” instead of “Decal Layer Default”
Resolution Note:
VideoPlayer.clockTime keeps the same value across calls when called more frequently than the clock's resolution. Also, MonoBehaviour.Update may get called faster than the movie frame rate, which explains why not every call will show a new video frame.