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
- Non-multisampled texture binding errors are logged when running the DepthBlit URP scene with MSAA enabled on Vulkan
- The Editor does not recognize code errors in generic classes when using C# Source Generator to generate serialization code
- Long Sprite names are not truncated in the Inspector window name label and the preview labels when a Sprite with a long name is selected
- NullReferenceException is logged when undoing Deletion of a Visual Query Block of a Search Expression
- “Unsupported type MinMaxCurve” error and “Could not register property modification for animation binding…” warnings are thrown after moving playhead when Particle System Property is added to Animation window
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.