我正在尝试从 streamURL 通过 videoview 播放视频,我收到 Logcat 错误:“无法在客户端打开文件,正在尝试服务器端”,我添加了 Androidmanifest Internet 权限,流 URL 中的错误是什么。?,这个是代码:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
VideoView videoView = (VideoView) findViewById(R.id.videoView1);
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(videoView);
mediaController.setMediaPlayer(videoView);
Uri video = Uri.parse("rtsp://s3/phimbo/hanquoc/2012/12/Horse.Doctor/Horse.Doctor.E02.mp4");
videoView.setMediaController(mediaController);
videoView.setVideoURI(video);
videoView.start();
}