안드로이드 webview로 자산 폴더에 html 페이지를로드하는 중, html 페이지에 비디오가 있습니다. 그러나 비디오가 재생되지 않습니다, 여기 코드를 공유합니다.안드로이드 webview에서 비디오가 재생되지 않습니다.
<!doctype html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<script type="text/javascript" charset="utf-8" src="video.js"></script>
<script>
function en(){
video1.play();
}
</script>
</head>
<body>
<div id="t2" width ="1024" height="768" style="background- image:url(images/L6_P007.jpg); background-repeat:no-repeat;">
<video id="video1" width="1024" height="768" poster="images/L6_P007.jpg" controls autoplay onended="en();" >
<source src="videos/L6_P007.mp4" type="video/mp4">
<source src="videos/L6_P007.ogv" type="video/ogg">
<source src="videos/L6_P007.webm" type="video/webm">
</video>
</div>
</body>
</html>
이이 문제가 SO에 여러 번 설명 내 자바 코드
WebView webview = (WebView) findViewById(R.id.webView1);
webview.getSettings().setJavaScriptEnabled(true);
webview.setWebViewClient(new WebViewClient());
webview.getSettings().setPluginState(WebSettings.PluginState.ON_DEMAND);
webview.loadUrl("file:///android_asset/videosamp/videosamp.html");
http://www.broken-links.com/2010/07/08/making-html5-video-work-on-android-phones/ – MKJParekh
@Deepa 솔루션을 찾았습니까? 예이면 나와 공유하십시오. 미리 감사드립니다. – Ashini