Hi,
What is the best method to detect when a video has completed playback?
I am using the below to play the video, which is standard:-
- // Movie handlers
- Movie videoAttractLoop;
- // Set up the sketch
- void setup(){
- // Load videos into memory
- videoAttractLoop = new Movie(this, "attract_loop.mp4");
- // Play attract loop as video
- videoAttractLoop.loop();
- }
- // Play the movie stream
- void movieEvent(Movie m) {
- m.read();
- }
Can someone point me in the right direction?
I would like to know how I can tell when the video file has finished playback.
Thank you.