Search Issue Tracker
Fixed
Fixed in 2022.3.25f1, 2023.2.20f1, 2023.3.0b8, 6000.0.0b14
Votes
0
Found in
2022.3.19f1
2023.2.9f1
2023.3.0b6
6000.0.0b12
Issue ID
UUM-63591
Regression
Yes
[WebGL] Video playback becomes erratic in web browsers upon losing and regaining browser focus
Reproduction steps:
1. Open the attached project “webProject”
2. Build And Run for WebGL
3. Press the “Stream Video” button
4. Remove focus from the browser for 10s or more (either by opening another app / new tabs)
5. Return to the video and observe the video playing
Expected result: The video plays at normal speed
Actual result: The video plays erratically
Reproducible with: 2022.2.0b8, 2022.3.19f1, 2023.2.9f1, 2023.3.0b6
Not reproducible with: 2021.3.34f1, 2022.2.0b7
Reproducible on: macOS (Intel) 14.2.1, Windows 11
Not reproducible on: No other environment was tested
Notes:
- This issue is reproducible with both Unity and non-Unity web servers
- Reproducible regardless of the Update Modes used
- Reproducible with Chrome, Firefox, Safari
- Safari has most consistent visible reproduction
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
- Shader Graph Swizzle Node Input/Output and Mask Update Incorrectly After Undo
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
Resolution Note (fix version 6000.0.0b14):
Video playback in web browsers cannot precisely follow Unity time, so Unity's VideoPlayer modulates the playback speed to catch-up with Unity time when needed. This strategy does not work with Safari because of underlying limitations in its video playback infrastructure, so this drift correction is now disabled. More apparent drift correction (through seek operations) can be used instead if needed.
Resolution Note (fix version 2023.3.0b8):
Video playback in web browsers cannot precisely follow Unity time, so Unity's VideoPlayer modulates the playback speed to catch-up with Unity time when needed. This strategy does not work with Safari because of underlying limitations in its video playback infrastructure, so this drift correction is now disabled. More apparent drift correction (through seek operations) can be used instead if needed.