Android WebView Failed to execute 'play' on 'HTMLMediaElement': error playing mp3 file -


in html file when html loading plays mp3 file in background. not playing file give following error. failed execute 'play' on 'htmlmediaelement':

got solution. occurs because of playing audio file without making click or not doing action in webview. overcome need set below property webview  if (build.version.sdk_int >= build.version_codes.jelly_bean_mr1)  {    mwebview.getsettings().setmediaplaybackrequiresusergesture(false); } 

Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -