dsgvo-video-embed icon indicating copy to clipboard operation
dsgvo-video-embed copied to clipboard

Version v1.1.0 does not work in Firefox

Open hannesdorn opened this issue 2 years ago • 3 comments

The new version does not work in firefox anymore.

Uncaught DOMException: Permission denied to access property "stop" on cross-origin object dsgvo-video-embed.min.js:32 (Async: EventListener.handleEvent)

Firefox 106.0.5 Firefox 107.0b9

hannesdorn avatar Nov 09 '22 12:11 hannesdorn

Hm, I can't reproduce this on my Mac with Firefox 106.0.5. I will check later on a Windows machine. Did this occur with the demo?

a-v-l avatar Nov 10 '22 08:11 a-v-l

The demo is working, the new version works in a regualar website, but not in my WordPress website. I am going to investigate it further next week.

hannesdorn avatar Nov 10 '22 10:11 hannesdorn

If you load the video using the src attribute in this manner:

<iframe width="560" height="315" src="https://www.youtube.com/embed/hZ3w5VMr8gw?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

you will encounter the error that is the subject of this issue.

To resolve this issue, you must load the video using the data-src attribute as described in the documentation.

<iframe width="560" height="315" **data-src**="https://www.youtube.com/embed/hZ3w5VMr8gw?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

So maybe this is the problem.

egolive avatar Mar 06 '23 15:03 egolive