I have implemented a simple program to play RTSP video in android with below code:
private String path2 = "rtsp://mylocalip:port/webcam";
Uri video = Uri.parse(path2);
mVideoView.setVideoURI(video);
mVideoView.setMediaController(new MediaController(this));
mVideoView.requestFocus();
mVideoView.postInvalidateDelayed(100);
mVideoView.start();
I see the video but after 1-2 second my video stops(freeze).
On VLC and on on Google play app RTSP Player the video works fine!
For RTSP server streaming I use live555 v4l2 and H264 on Linux.
Do Have you any idea or solution to my problem?