iframe Youtube Video API issue
-
hi,
I am using iframe to embed youtube videos to my wordpress website. It does pretty nice job with that, blocking it if i click dismiss to the consent, and allowing it when i click accept all.
But, i am using Youtube’s API to pause a Revolution Slider’s Slider when the Youtube Video is playing so it dont swap slider by itself when user is watching the video. And my issue here is that that code i have wrote is working only the first time of page load. If i want to make it work again i need to click dismiss on the cookies, the plugin correctly automaticaly refresh the page, and then on the video place i see that nice text “Click to accept marketing cookies and enable this content” if i click that, and accept the cookies, the video appears, and my code works again. But after i refresh the page by myself, the code does not work, so i need to do that again, dismiss, and then accept, then it works again. Is there anything that i am missing here?
regards
- The topic ‘iframe Youtube Video API issue’ is closed to new replies.