Hi All,

I am trying to play video on my application. The video files are
hosted in my server and I am using the VideoView to play them.

The problem I am facing is that no video is shown in the screen. The
logcat only shows the amount of buffering but it does not shows any
type of codec that has been used to pay the video

Surprisingly if i transfer the same file to my sdcard and use the
default player, it plays fine saying that MPEG4 codes is been used.

What may be the problem.

Kindly Help

Here is my code for the reference-

setContentView(R.layout.videoplayer);
Bundle bundle = getIntent().getExtras();

VideoView videoView = (VideoView) findViewById(R.id.VideoView);
videoView.setOnPreparedListener(this);
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(videoView);

Uri video = Uri.parse("http://newshunt.biz/Test/video/Test/
outputfile.mp4");
videoView.setMediaController(mediaController);
videoView.setVideoURI(video);
videoView.start();

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to