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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.