I've created a video displayer in processing, and when you press a number on the keyboard it changes the video, so 1 = video1, 2 = video2, 3 = video3 etc.
This switch works fine, however, the problem I'm having is that although a new video displays, the audio carries on playing from the previous video, and I want this to stop at the same time the video changes.
Does anyone have any ideas, or code I could use to prevent this?