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
- Popup windows spawn on the incorrect monitor when the Editor is placed near the boundary of scaled monitor next to a monitor with different scaling
- Hidden Tabs do not shift into empty space after closing visible Tabs
- [Android] Application not deployed on a device when "activity-alias" is used in the AndroidManifest
- Shader compile process adds shader ID to the constant buffer name when the word "Globals" is being used in Vulkan
- Audio Mixer Snapshot link to the documentation isn’t working
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.