• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Android Videoview not displaying .sdp files

I am making live tv channel streaming app. But when i try to play the .sdp files in the android videoview it gives the error that "Sorry can't play this video".But it is playing .mp4 and .3gp videos successfully. What should i do.I googled alot but in vain.

String VideoURL = "rtsp://pull.newclear.tv/live/livestream2_160p";
//"rtsp://pull.newclear.tv/live/livestream2_160p";
//.sdp links are also giving same error//links of above type are not working

This is my code for videoview

MediaController mediacontroller = new MediaController(
VideoViewActivity.this);
mediacontroller.setAnchorView(videoview);
// Get the URL from String VideoURL
Uri video = Uri.parse(VideoURL);
videoview.setMediaController(mediacontroller);
videoview.setVideoURI(video);

I am searching for days but didn't find anything useful.
Please help me!!
 
Back
Top Bottom