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

If I parse LiteYouTubeEmbed as html on the server side, will it not work? #46

Open
es-ki opened this issue Jan 30, 2022 · 0 comments
Open
Labels
question Further information is requested triage

Comments

@es-ki
Copy link

es-ki commented Jan 30, 2022

Thank you very much for developing this wonderful library.

In my app, it worked from displaying the video thumbnail and YouTube icon to the icon hover effect.
When I press the thumbnail, nothing happens and I can't play it.
I'm using Next.js to parse the article information retrieved from the CMS into html on the server side, is this the cause?

When I checked the html elements, it seemed that the following two types of link tags were missing when compared to demo.

  • <link rel="preconnect" href="https://www.youtube-nocookie.com">
  • <link rel="preconnect" href="https://www.google.com">

demo
demo

myApp
myApp

When I checked the behavior with CodeSandBox, the thumbnail display did not work, but the playback did, so I figured that the lack of playback might be due to server-side processing.

@ibrahimcesar ibrahimcesar added question Further information is requested triage labels Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested triage
Projects
None yet
Development

No branches or pull requests

2 participants