Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Embedding youtube video?

plugins

Solved by miki View solution

Started by miki 6 years ago · 2 replies · 2181 views
6 years ago

I've embedded a youtube playlist in my grav-powered site, and it has been working well until around 3 weeks ago. Since then, it always gave the following error:

Unable to process oEmbed media:
[youtube link]
ERROR: The media ID is invalid or the media was deleted.

However, if I click the youtube link, I get directed to the right youtube video.

I use MediaEmbed v.1.3.0 plugin ( https://github.com/sommerregen/grav-plugin-mediaembed ). I didn't change this plugin, which means, it was working.

Any suggestion/advice to fix this issue will be greatly appreciated.

Thanks a lot!

6 years ago

@samemiki, What happened "around 3 weeks ago"? Any upgrade, new plugin, clearing cache, anything you can think of, ...?

6 years ago Solution

There's no changes that I know of. I just checked the media plugin git, it seems there's similar issues and they mentioned to use the youtube plugin instead ( https://github.com/Sommerregen/grav-plugin-mediaembed/issues/32 ). But, the youtube plugin doesn't seem to work well with https (https://github.com/getgrav/grav-plugin-youtube/issues/35 ). I've resolved the issue using iframe, as per provided by youtube directly.

Thanks anyway!

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 4 days ago
4 110 3 days ago
Support · by nwhitfield, 5 days ago
2 97 5 days ago
Support · by stell, 2 weeks ago
5 340 1 week ago
Support · by gravinator, 1 month ago
5 538 1 week ago
Support · by Gravver, 3 weeks ago
6 333 3 weeks ago