Hello Cody,
You can call the following code when switching to another page:
predocument.querySelector('[name="youtube_2"]').contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');/pre
Where youtube_2 is the name of your youtube component