Browse - Programming Tips - How can I play a video in a webpage without user interaction?

Date: 2018mar28
OS: Android
Language: Java
Keywords: autoplay

Q.  How can I play a video in a webpage without user interaction?

A.
wv.setWebChromeClient(new WebChromeClient()); wv.getSettings().setMediaPlaybackRequiresUserGesture(false); wv.getSettings().setJavaScriptEnabled(true);