I'm seeing the follow error in our HTML 5 JavaScript video player implementation, only on Android + Chrome Mobile:
Uncaught (in promise) DOMException: play() can only be initiated by a user gesture
What is the cause of this error and what is the right way to avoid it going forward?
If you are using a webview this will work.
webviewSettings.setMediaPlaybackRequiresUserGesture(false);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With