• Resolved trying-my-best

    (@apatsidis123)


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @apatsidis123,

    If your code refers to YouYube it might be parsed and blocked, because we think it is related to YouTube.

    Try adding a script class: class="cmplz-native" so we skip the script by default, maybe this helps.

    Let me know, otherwise post your URL if you can, so we can have a look,

    regards Aert

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @apatsidis123,

    Did Aert’s suggestion (adding class=”cmplz-native” to your script, so Complianz skips it) help solve your issue?

    Let us know if you have any further questions about this.

    Kind regards,
    Jarno

    Thread Starter trying-my-best

    (@apatsidis123)

    hi,

    No it did not work with this with this addition, not sure if i added the class correct but what i did did not work. Not sure any more if is a Complianz issue or another’s plugin issue. Because the strange thing is that when i have disabled Complianz, my code does not work, but when i have enabled the complianz, it works for the 1st time only, after refresh i have to decline all cookies and accept them again, then again it works for 1 time. So the fact that the code does not work at all with complianz disabled, not sure if is your issue any more.

    regards

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @apatsidis123,

    We could always have a look at the behavior, if you share an URL to your website along with the code snippet that you are using.

    Kind regards,
    Jarno

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘iframe Youtube Video API issue’ is closed to new replies.