Why isn't my Android Videoview displaying .sdp files?

A

AC Question

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!!
 

Trending Posts

Forum statistics

Threads
943,011
Messages
6,916,882
Members
3,158,773
Latest member
Chelsea rae