Youtube embedded video disruption on back button navigation
Posted: Mon Oct 20, 2014 12:50 pm
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