Skip to content Skip to sidebar Skip to footer

Cannot Play Rtsp Video In Videoview In Samsung Galaxy S2

I'm trying to play a live RTSP video (from rtsp://media2.tripsmarter.com/LiveTV/BTV/) using VideoView, and here's my code: public class ViewTheVideo extends Activity { VideoVie

Solution 1:

@Andro Selva this is how I streamed his link

 video_url = "rtsp://media2.tripsmarter.com/LiveTV/BTV/"; 
try {
            videoView =(VideoView)findViewById(R.id.videoView1);
            //Set video link (mp4 format )
            Uri video = Uri.parse(video_url);
            videoView.setVideoURI(video);
            videoView.setOnPreparedListener(new OnPreparedListener() {
            public void onPrepared(MediaPlayer mp) {

                videoView.start();
                }
            });
         }catch(Exception e){
         }

Post a Comment for "Cannot Play Rtsp Video In Videoview In Samsung Galaxy S2"