直播从网络摄像头或频道的Android
String LINK = "rtsp://121.244.145.226:554/prf0/cid_61.sdp";
setContentView(R.layout.activity_main);
VideoView videoView = (VideoView) findViewById(R.id.tv);
MediaController mc = new MediaController(this);
mc.setAnchorView(videoView);
mc.setMediaPlayer(videoView);
Uri video = Uri.parse(LINK);
videoView.setMediaController(mc);
videoView.setVideoURI(video);
videoView.start();}}
这里是我的代码给错误不能播放视频任何人请帮助吗?
10-22 12:49:14.875:W / MediaPlayer(21235):info / warning(701,0)10-22 12:49:35.875:E / MediaPlayer(21235):error(1,-2147483648)10-22 12:49:35.875:E / MediaPlayer(21235):错误(1,-2147483648)
logcat详细信息
链接地址: http://www.djcxy.com/p/61393.html