웹 페이지에서 다음 html을 열려고 시도합니다. 보시다시피 동영상 목록이 있습니다. 이 모든 비디오는 브라우저에서 열면 완벽하게 작동하지만 내 장치에서 열지 못합니다. Practically they don't play!!!!
이것은 here is my image http://i48.tinypic.com/nl66vm.pngwebView에서 비디오를 재생할 수 없습니다.
내가 여기까지이 항목 중 하나를 클릭하면 ... 각 항목은 비디오에 대한 링크입니다 .... 내 웹 페이지 인 '이 비디오입니다 ...하지만 그것은 단지 아무튼 놀이.
중요 동영상을 클릭해도 동영상이 재생되지 않습니다. 무엇을하더라도 ... 재생되지 않습니다.
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
// ToDo add your GUI initialization code here
setContentView(R.layout.second);
WebView myWebView = (WebView) findViewById(R.id.webview);
myWebView.setWebViewClient(new HelloWebViewClient());
myWebView.getSettings().setJavaScriptEnabled(true);
myWebView.getSettings().setAllowFileAccess(true);
myWebView.getSettings().setPluginsEnabled(true);
myWebView.loadUrl("Here is set the link");
}
private class HelloWebViewClient extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (Uri.parse(url).getHost().equals("Here is set the link")) {
// This is my web site, so do not override; let my WebView load the page
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
intent.setDataAndType(Uri.parse(url), "video/*");
view.getContext().startActivity(intent);
return true;
}
else{
return super.shouldOverrideUrlLoading(view, url);
}
}
}
중요 비디오는 브라우저의 내부에서 작업 : here is my image http://i47.tinypic.com/2cs728o.png
그리고 여기 내 코드입니다. 내 동영상을 재생하려면 누구나 솔루션을 제공 할 수 있습니까? 고마워요
만약 당신이 그것을 해결하고 나서 그것을 공유한다면 똑같은 문제에 직면하게 될 것입니다. –