gfscott / eleventy-plugin-embed-everything

An Eleventy plugin to easily embed common media formats in posts, using only their URLs
https://gfscott.com/embed-everything/
MIT License
99 stars 6 forks source link

Embedded video not visible #59

Open 0xbaha opened 3 years ago

0xbaha commented 3 years ago

Hi! Thank you for this amazing plugin.

I have a question. I already follow every instruction in the README file, but no embedded video, instead only link and the notification "This content is blocked. Contact the site owner to fix the issue."

FYI

Attachment

image image image

gfscott commented 3 years ago

This seems like some sort of network error with YouTube — it looks like the plugin is configured properly and judging by the screenshot of the markup it's producing the expected HTML output.

Perhaps your network has the default youtube-nocookie.com domain blocked for some reason?

Are you able to open either of the following URLs successfully?

If it's a problem with youtube-nocookie then you can use the standard youtube.com URLs by setting noCookie to false:

eleventyConfig.addPlugin(embedEverything, {
  youtube: {
    options: {
      noCookie: false
    }
  }
});

Hope this helps sort things out. I'll leave this issue open for a couple days — please leave a comment if you figure it out so future searchers can find the solution!

0xbaha commented 3 years ago

Thank you for your reply!

I can open both these URLs from my browser:

image

But, when I tried to play, they said this:

image

I also had tried update the setting for the noCookie to false. But, the embedded video still didn't show.

0xbaha commented 3 years ago

I thought it happened because the above video did not allow embedded. Then, I tried another video that allowed for embedding. After that, I tried again and still got the same result.

I tried to deploy in my local, Cloudflare Pages, and Netlify. All of them give the same result (the embedded video did not show).