I was able to successfully transfer RTSP FILES (i.e. videos stored on SDCARD with the extension .3gp, .mp3, .mp4, etc.), but when I use the same code to stream the URL, for example: rtsp: //122.166.229.151:1950/13478f6be4b133f (without extension) the screen goes blank and after a certain interval it says that it cannot play this video. I am using a Samsung Galaxy 551 phone with 2.2 OS for testing. Request for help
VideoView videoView = (VideoView) findViewById(R.id.tvvideoView);
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(videoView);
Uri video = Uri.parse(rtsp:
videoView.setMediaController(mediaController);
videoView.setVideoURI(video);
videoView.start();
This is my code.
source
share