Auto play is disabled with the Android SDK 17 to avoid poor user experience when playing videos (for example, unwanted playback, unwanted use of data). Typically, a video should only be played after a user action. It is recommended for Android and iOS at present.
You can, however, set setMediaPlaybackRequiresUserGesture to false to enable autorun if you really need to. Remember to check the SDK version because this parameter does not exist before the Android SDK 17.
int SDK_INT = android.os.Build.VERSION.SDK_INT; if (SDK_INT > 16) { engine.getSettings().setMediaPlaybackRequiresUserGesture(false); }
Today, Google’s decision regarding autorun is discussed and discussed: http://chromium-bugs.chromium.narkive.com/cW5IXVgj/issue-178297-in-chromium-android-chrome-does-not-allow-applications-to-play-html5 -audio-without-an
source share