Just in case anyone has any similar problems I seem to have solved this by stopping (movie.stop()) all the movies before initiating the new ones.
- //called via selectInput() when new video file is selected
- void fileSelected(File selection) {
- if (selection == null) {
- println("Window was closed or the user hit cancel.");
- }
- else {
- for (int i = 0; i < myMovies.length; i ++ ) {
- myMovies[i].stop();
- }
- vidFile = selection.getAbsolutePath();
- initVideo(); //re-initiate video
- }
- }