I have series of youtube/mp4 videos on the timline and navigation to go to different timeline navigation points.
When I play the video it works fine but when I click on my navigation to go to another navigation point the audio still plays in the background.
I made sure to turn off my content dropzone by each point but it still plays. the only way that it stops is when I manually hit pause or stop before clicking my navigation.
Does anyone know how to prevent this from happening?
I figured out how to reset the Youtube video upon hiding thanks to Heathrowe's answer and FigFrance's contribution to the thread found here:
The secret was adding .empty() to my video container. Here is my functioning button code:
//code to embed youtube into symbol
var youtube = $("<iframe/>");
// Show an element
// Hide an element