I have the following url :- rtmp://95.87.101.64:1935/live/mtv-ifilm-ifilm-live-16x9-SDq
I want to stream this video live in my android mobile and my code for live streaming is
MediaController mediacontroller = new MediaController( VideoViewActivity.this);
mediacontroller.setAnchorView(videoview);
// Get the URL from String VideoURL
Uri video = Uri.parse(VideoURL);
Log.e("Video uri", "" + video);
videoview.setMediaController(mediacontroller);
videoview.setVideoURI(video);
videoview.setOnPreparedListener(new OnPreparedListener() {
// Close the progress bar and play the video
public void onPrepared(MediaPlayer mp) {
pDialog.dismiss();
videoview.start();
}
});
but i am not able to play the video and when i check the logcat i found this error 09-09 14:43:19.887: E/MediaPlayer(11277): Error (1,-2147483648)
but when i change the video url to rtmp://bomtv.5centscdn.com:1935/asianetmovie/c1c120277d434ca3b8a2d3bdf654dcba.sdp its working perfectly . please help where i am doing wrong.
0 comments:
Post a Comment