1
vimeo 비디오 재생 지원이 필요한 앱을 제작하고 있습니다. 비디오 재생에 성공했지만 현재 비디오 재생 진행 방법을 모릅니다. https://github.com/droid28/VimeoVideo에서 제안한대로 HTML5WebView를 사용하고 있습니다. 사람이 idea..please이 제안하는 경우 .. 덕분에 여기 안드로이드 webview에서 Vimeo 비디오의 Play Progress를 얻는 방법?
은 코드입니다 :webview = (WebView)findViewById(R.id.webView1);
WebSettings webViewSettings = webview.getSettings();
webViewSettings.setJavaScriptCanOpenWindowsAutomatically(true);
webview.addJavascriptInterface(new JavaScriptInterface(this),"jsInterface");
webview.setWebChromeClient(new WebChromeClient());
webViewSettings.setJavaScriptEnabled(true);
webViewSettings.setPluginState(PluginState.ON);
String page="<html> " +
"<head> " +
"<style>" +
"iframe {" +
"position: absolute;" +
"z-index: 1;" +
"top: 0;" +
"left: 0;" +
"width: 100%;" +
"height: 100%;" +
"}" +
"</style>" +
"</head>" +
"<body>" +
"<iframe id=\"player\" src=\"http://player.vimeo.com/video/"+video_id+"?api=1&player_id=player\" width=\"400\" height=\"225\" frameborder=\"0\" webkitAllowFullScreen mozallowfullscreen allowFullScreen>" +
"</iframe>" +
"</body>" +
"</html>";
webview.loadDataWithBaseURL("file:///android_asset/page.html", page,"text/html", "UTF-8",null);
당신이 몇 가지 코드를 보여 주실 수있는 플랫폼에서 지원하는 이벤트를 보려면이 표를 참조
모바일
에 플레이 진행 이벤트를 지원하지 않습니다. –