Android 調用内置的视频播放器

    public void startBuildPlayer() {
        Intent intent = new Intent(Intent.ACTION_VIEW);
        String path = Environment.getExternalStorageDirectory().getPath() + "/DCIM/Camera/VID_20170523_215757.3gp";
        Uri uri = Uri.parse(path);
        intent.setDataAndType(uri, "video/3gp");
        startActivity(intent);
    }

你可能感兴趣的:(Android 調用内置的视频播放器)