Embed (formerly known as the oEmbed plugin) has arrived in version 3. Besides the rename, most changes happened under the hood in the library (oscarotero/Embed) that the plugin is based on.
Embed your media!
After installing the plugin, you can easily turn any field with a media url into embed code by just applying the field method to it:
Embed also comes with its own panel field which offers instant preview of the embedded media. A quick sneak peak:
Due to my current job, I cannot invest a lot of time into my plugins, but I try to keep them updated steadily. I hope you enjoy it - suggestions always welcome!
Sadly, it doesn’t work in production for me at all - I checked the requirements, which are all met (cURL, PHP version, …) - at first I thought this only affects Soundcloud, but YouTube and others, too - any idea on how to debug this?
That’s true, nothing to see here. I mean, I could try to use the template tag, but for my client that would be a nightmare …
// Edit:
There’s also a github issue stating that it doesn’t work for them in production, but no answer by @distantnative so far - which I can totally understand, given his many contributions to the open source world AND means to earn money
I’ll try older versions and check if they lead somewhere.
Alright, after long time playing with it, here goes: there was no cache directory present. Eventually when using other template methods to invoke the plugin, Whoops complained.
First of all, I like this plugin, thank you very much!
Second, I don’t get it to run, just like @daybugging everything works (including backend preview), but hitting ‘PLAY’ doesn’t do anything.
Found out what it was, eventually - since lazyload is activated by default, the <iframe> sets the URL as data-src - not including embed’s JS leads to not being able to play it.