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
- Crash on mono_dump_native_crash_info when changing a Particle System Renderer’s Material Shader to Standard Unlit
- VFX Prefab doesn’t have Preview icon in Project window and Preview window is empty in Inspector window
- Visual Effect Graph error message does not disappear and lasts forever until the Visual Effect Graph is reopened even when the error causing connection/node is deleted and Visual Effect Graph is saved
- “RenderSettings customReflection texture has invalid type” error keeps getting thrown even when Environment Reflections was set back to Skybox from Custom with an invalid texture
- Particle System with the custom Material breaks the Scene view when the material is using a Shader Graph with the Texture with the power of negative value
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.