@next/third-party/google YouTube embed JS API
Unanswered
Pixiebob posted this in #help-forum
PixiebobOP
Hey, I'm curious what the best advice is on accessing the [JS API on lite-youtube-embed](https://github.com/paulirish/lite-youtube-embed?tab=readme-ov-file#access-the-youtube-iframe-player-api).
I would think about accessing the element using Ref, but the
I would think about accessing the element using Ref, but the
YouTubeEmbed
doesn't accept ref
as a parameter. Using document.querySelector
is usually discouraged.3 Replies
PixiebobOP
I also asked this in GPT help to little avail:
https://discord.com/channels/752553802359505017/1222441116456976446/1222441116456976446
https://discord.com/channels/752553802359505017/1222441116456976446/1222441116456976446
PixiebobOP
RIP