我有这个视频:http ://www.youtube.com/v/oyB5QWcPSRo? version=3&f=user_uploads&app=youtube_gdata,我需要它在我的应用程序中播放,我用 videoView 测试失败。:有错误消息“无法播放视频”
MediaController mc = new MediaController(this);
mc.setAnchorView(vidYout);
mc.setMediaPlayer(vidYout);
Log.v("TAG","URL: "+YoutubeVO.url_video);
Uri video = Uri.parse("devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8");
//Uri video = Uri.parse(YoutubeVO.url_video);
vidYout.setMediaController(mc);
vidYout.setVideoURI(video);
vidYout.requestFocus();
vidYout.start();
如果问题出在视频中,我尝试更改 URL,但不是。我也尝试过使用 webView 失败
wvComunicado.getSettings().setLoadWithOverviewMode(true);
wvComunicado.getSettings().setUseWideViewPort(true);
wvComunicado.loadData(YoutubeVO.url_video, "text/html" , "UTF-8");
关于如何玩它的任何想法?
谢谢!