Actually i made one application for iphone and android device.. and in that video feature is available so video uploaded by iphone device,video (mp4) is cant played in android device so please any body help me
pDialog = new ProgressDialog(this);
// Set progressbar message
pDialog.setMessage("Buffering...");
pDialog.setIndeterminate(false);
pDialog.setCancelable(false);
// Show progressbar
pDialog.show();
try {
// Start the MediaController
MediaController mediacontroller = new MediaController(
PlayVideoViewFromURLActivity.this);
mediacontroller.setAnchorView(mVideoView);
// Get the URL from String VideoURL
Uri videoUri = Uri.parse(vidUrl); // vidUrl is url of video which on server
mVideoView.setMediaController(mediacontroller);
mVideoView.setVideoURI(videoUri);
} catch (Exception e) {
e.printStackTrace();
}
mVideoView.requestFocus();
mVideoView.setOnPreparedListener(new OnPreparedListener() {
// Close the progress bar and play the video
public void onPrepared(MediaPlayer mp) {
pDialog.dismiss();
mVideoView.start();
}
});
mVideoView.setOnCompletionListener(new OnCompletionListener() {
public void onCompletion(MediaPlayer mp) {
if (pDialog.isShowing()) {
pDialog.dismiss();
}
finish();
}
});
full Logcat error :
08-13 09:45:10.062: D/MediaPlayer(1929): Couldn't open file on client side, trying server side
08-13 09:45:11.770: E/MediaPlayer(1929): error (1, -2147483648)
08-13 09:45:11.790: E/MediaPlayer(1929): Error (1,-2147483648)
08-13 09:45:11.790: D/VideoView(1929): Error: 1,-2147483648