( 1 ) 调用系统播放器
Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath()+"/Movie.m4v");
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(uri, "video/mp4");
startActivity(intent);
android 支持mp4/3gp
( 2 )使用VideoView组件:
Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath()+"/Movie.m4v");
VideoView videoView = (VideoView)this.findViewById(R.id.video_view);
videoView.setMediaController(new MediaController(this));
videoView.setVideoURI(uri);
( 3 )使用MediaPlayer类