Search Issue Tracker
By Design
Votes
0
Found in
2018.4.0f1
2019.1.0a1
2019.1.3f1
2019.2.0a1
2019.3.0a1
Issue ID
1158859
Regression
No
Uninformative errors are thrown when video fails to auto-play because of disabled auto-play in the browser settings
How to reproduce:
1. Open the attached build with a browser which does not allow video auto-play
2. Inspect the Developers console
Expected results: Error says something like "play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD"
Actual results: Error says "Uncaught (in promise) DOMException"
Reproducible with: 2018.4.2f1, 2019.1.5f1, 2019.2.0b5, 2019.3.0a5
Couldn't test with 2017.4 because of project errors after the downgrade
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
- File watcher does not trigger after the AcquireFloatingLease and before the Entitlement check
- HDR Output gets disabled in the Editor when Reflection Probe is enabled during runtime
- The "Build and Run" Menu option tries to build for the selected Build Platform instead of the Active Build Platform
- Font kerning breaks at runtime when multiple UI Documents use different fonts
- MissingReferenceException occurs when entering Play mode with a locked GameObject in the Inspector
Resolution Note (2019.3.X):
Firefox prints out:
Autoplay is only allowed when approved by the user, the site is activated by the user, or media is muted.
NotAllowedError: The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
In scenarios where error message or behavior is uninformative, it is recommended to check against multiple browsers in case some other browser might give better info.