我试图在 Android 应用程序的 VideoView 中播放视频。问题是我如何从 youtube 获取正确的视频链接,而不仅仅是网页?
setContentView(R.layout.videopopup);
VideoView vv = (VideoView)findViewById(R.id.videoElem);
MediaController mc = new MediaController(this);
mc.setEnabled(true);
mc.show(0);
vv.setMediaController(mc);
vv.setVideoURI(Uri.parse("http://www.youtube.com/v/oFL2rszPmmU?version=3&feature=player_detailpage"));
vv.requestFocus();
vv.showContextMenu();
vv.start();
在此链接中:视频视图未播放 youtube 视频
Evgeny Nacu 解释了它应该是哪个链接,但没有解释如何从给定的 youtube 页面检索它。