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
- The sidebar reopens when Unity Hub is started when Unity Hub was closed with the sidebar closed
- Characters are invisible in the TextField when certain Japanese characters are used
- "InvalidOperationException" is thrown when using Prefab > Replace to replace a Canvas GameObject with a Prefab that has an incompatible root Transform type
- Looping AudioSource resumes from the wrong playback position when the app is backgrounded and resumed on iOS Safari
- "AnyState Transition Created" action can be undone when pressing "Auto Generate Animation" on the uGUI GameObjects
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.