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
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
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.