Is video element is possibly the YouTube video initially? #5764
Unanswered
kanaihyakumar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to have video element as a YouTube element initially. I followed the instructions as well which is:
The DOM representation of the component acts differently from what you'd expect, so you need to change some behavior. An example could be a VideoComponent which, for example, is loaded from Youtube via iframe. Once the iframe is loaded, everything inside it is in a different context, the editor is not able to see it, indeed if you point your cursor on the iframe you'll interact with the video and not the editor, so you can't even select your component. To workaround this "issue", in the render, we disabled the pointer interaction with the iframe and wrapped it with another element (without the wrapper the editor would select the parent component). Obviously, all of these changes have nothing to do with the final code, the result will always be a simple iframe
Issue:
There is video tag also coming up along with the Iframe. So is there anything else I have to do in my element constructions?
Beta Was this translation helpful? Give feedback.
All reactions