Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a JAVA program that plays a video clip of a concert or opera performance.

ID: 3695288 • Letter: W

Question

Write a JAVA program that plays a video clip of a concert or opera performance.

Requirements:

Upon running the program a theater curtain is displayed

When the user clicks on the curtain, the curtain opens and a video clip of the concert/opera performance (complete with sound) begins.

It is acceptable to have a working console with a start, pause and stop button displayed at the bottom of the video clip, after the curtain opens.

You may need the following to complete the answer to this question:

A. An installation of the Java Media Framework (JMF). This is a Java library that enables audio, video and other time-based media to be added to Java applications and applets. You can find the appropriate links in the slides (see Presentation2.pdf above)

The easiest way is probably writing a "batch file."

Explanation / Answer

import processing.video.*;

String PATH = "/path/to/one/of/your/movies/blabla.mp4";
Movie mov;

void setup() {
size(640, 360);
frameRate(30);
mov = new Movie(this, PATH);
mov.play();
mov.speed(5);
mov.volume(0);
}
void movieEvent(Movie m) {
m.read();
}
void draw() {
image(mov, 0, 0, width, height);
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote