VideoView Android Studio
VideoView videoView = (VideoView) findViewById(R.id.videoView); // initiate a video view
Uri uri = Uri.parse("add url");
String path = "android.resource://" + getPackageName() + "/" + R.raw.video file name;
videoView.setVideoURI(Uri.parse(path));
videoView.start();
Uri uri = Uri.parse("add url");
String path = "android.resource://" + getPackageName() + "/" + R.raw.video file name;
videoView.setVideoURI(Uri.parse(path));
videoView.start();
Comments
Post a Comment