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
- Rendering Debugger Playmode debug UI scrolling is jittery when using click and drag to scroll
- Frame Debugger Target Selection Search Results window becomes too tiny to even see the default “Editor” selection when there are no search results
- Element name field has no character limit in UI Builder
- Async method in Play Mode being aborted when calling `new System.Windows.Forms.Form`
- Animator window Eye button on click visual does not cover the whole area of the button when clicked
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.