Live Streaming from android of ip camera or channels
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();}}
here is my code giving error can't play video anyone help please?
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): Error (1,-2147483648)
logcat details
链接地址: http://www.djcxy.com/p/61394.html上一篇: webview MediaPlayer:info / warning(702,0)
下一篇: 直播从网络摄像头或频道的Android