Interactive lightinstallation Processing with Arduino

When you get the problem, did “stopped movie” appear in your console log, or did it not appear? That seems to be the key line just before you switch target videos

println("stopped movie [" + movieIndex + "]");

movieIndex = (movieIndex + 1) % movies.length;