Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to alter the iframe tag for Videos #563

Open
deedy-tech opened this issue Nov 19, 2020 · 0 comments
Open

Is it possible to alter the iframe tag for Videos #563

deedy-tech opened this issue Nov 19, 2020 · 0 comments

Comments

@deedy-tech
Copy link

Hi
We are using Fotorama for displaying Youtube videos.

To conform to GDPR we need to able to control the cookies that YouTube sets and if the client chooses not to have cookies set, then disable the Youtube videos.

To enable us to do this we are using OneTrust's Cookie Management. They require that all the Iframe tags for Youtube are altered so that:

  1. It includes a "class" attribute eg '<iframe frameborder="0" class="optanon-category-VID01" ....'
  2. The 'src attribute is renamed to 'data-src' eg. '<iframe frameborder="0" class="optanon-category-VID01" data-src=...'

Is this possible in Fotorama and if so how?

Cheers
Rob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant