LYY
1
import processing.video.*;
Movie myMovie;
void setup() {
size(200, 200);
myMovie = new Movie(this, “abc.mp4”);
myMovie.play();
}
void draw() {
image(myMovie, 0, 0);
}
void movieEvent(Movie m) {
m.read();
}
No error is prompted, the video box is only gray.
Can someone help me?
glv
2
Hello,
Please format your code:
https://discourse.processing.org/faq#format-your-code
It works fine with example from here:
https://processing.org/reference/libraries/video/Movie_read_.html
And a movie added to the sketch folder:
https://processing.org/reference/libraries/video/Movie.html
I change size() for I can view a larger video.
You can drag and drop a file on to sketch folder to add one.
I did have to wait a few seconds for it to load; try with a small test file.
Working examples with a small audio file:
:)