Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.1.0p4
Issue ID
943659
Regression
No
After loosing focus AudioSource.PlayScheduled in WebGL restarts clip instead of resuming
Reproduction steps:
1. Open the attached project "PlayScheduledBug.zip";
2. Open the "Test" scene;
3. Build for WebGL (File -> Build Settings);
4. Open the produced "index.html" in the directory which you have chosen;
5. Wait for the audio clip to begin playing;
6. While the 6 second clip is playing, click a different window to pause the game (and a clip as well);
7. Wait for a few seconds;
8. Click on the browser to resume the game.
Expected results: When the window regains focus, the game resumes and the clip resumes from the point where it was paused.
Actual results: If the window loses focus for more than a few seconds when it regains focus the clip will restart from the beginning.
Reproduced on: 5.5.3p3, 5.6.3p2, 2017.1.1f1, 2017.2.0b10, 2017.3.0a7.
Note: This does not happen if using AudioSource.Play.
-
YaroslavSm
Jan 09, 2023 12:32
Typical Unity
-
forestrf
May 05, 2022 01:05
Gotta love "this has always been broken" and then "Won't fix"
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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Resolution Note (2019.2.X):
This has always been broken, and repro is reported as inconsistent. Does not meet the quality bar.