>
>
> This is what I use in my activity- it works for me.  May be try with MP4 
> or MP3 which is usually best supported by video view.  If it work then it 
> is codec issue.  You can try free opensource android players like xmbc, vlc 
> or vid for solving codec issues.
>

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

videoView.setOnCompletionListener(this);
 
videoView.refreshDrawableState();
videoView.setDrawingCacheEnabled(true);
videoView.setDrawingCacheQuality(TRIM_MEMORY_BACKGROUND);

videoView.setOnCompletionListener(this);

videoView.setOnPreparedListener(new OnPreparedListener() {

public void onPrepared(MediaPlayer arg0) { 
arg0.setLooping(false);
videoView.start();
}
});
 
videoView.setVideoPath(strVideoPath);
videoView.setMediaController(mediaController); 

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to