Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couldn't open file on client side, trying server side .?

I'm trying to play video by videoview from streamURL, I recieved Logcat error :"Couldn't open file on client side, trying server side", I have added Androidmanifest Internet permision, what is the error in stream URL.?,this is the code:

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    VideoView videoView = (VideoView) findViewById(R.id.videoView1);
    MediaController mediaController = new MediaController(this);
    mediaController.setAnchorView(videoView);
    mediaController.setMediaPlayer(videoView);

    Uri video = Uri.parse("rtsp://s3/phimbo/hanquoc/2012/12/Horse.Doctor/Horse.Doctor.E02.mp4");
    videoView.setMediaController(mediaController);
    videoView.setVideoURI(video);
    videoView.start();
}
like image 254
Nguyen Thanh An Avatar asked Jan 08 '13 04:01

Nguyen Thanh An


1 Answers

"Couldn't open file on client side, trying server side" is not an error message, but a debug message from the MediaPlayer. Logcat always says this when trying to play a network video stream. As for your problem, it looks like your rtsp url is invalid since 's3' is not a complete domain. Have you tried the IP address in your url instead? Can you play the video with VLC (from http://www.videolan.org)? I see nothing wrong with your code except the url.

like image 140
Mogrifier Avatar answered Oct 28 '22 06:10

Mogrifier