Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

C#
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!!
Posted
Comments
Richard MacCutchan 20-Feb-15 9:37am    
Every video type needs a decoder to be able to play it. Check what codecs you need for this file type.
Awesome Sohel 25-Feb-15 7:21am    
see this-

stackoverflow.com/questions/19247772/android-4-1-rtsp-using-videoview-and-mediacontroller

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900