0

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?

AADProgramming
  • 6,077
  • 11
  • 38
  • 58
  • did you try with another video uri? why `mVideoView.postInvalidateDelayed(100)`? retry after commenting this line. – bachr Jan 15 '15 at 15:27
  • yes i have try with this video uri rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov and it works.I have commented mVideoView.postInvalidateDelayed(100) but i have the same problem. – Lorenzo Serra Jan 15 '15 at 15:34
  • hey @LorenzoSerra did you find any solution for this ? – yusufonderd Feb 02 '16 at 15:37

0 Answers0