- 🇫🇮Finland sokru
You can nowadays replace the "Video Embed Field" field with core's media and inline entity form without any custom code. Just needs some "advanced" site building by configuring the forms.
The good migration guide with some examples would probably help projects with limited resources to move into core media, but I guess that should happen on 💬 Video Embed Field Migration Active or in documentation pages.
- 🇫🇷France prudloff Lille
Media is a great module, but I'm not sure I understand why every website that needs videos should use it. IMHO, it does not serve exactly the same use case as video embed fields (on simple image fields for that matter).
On a small website where it does not make sense to reuse videos, using medias adds complexity and several more clicks to the editing experience.Yes, it is possible to replicate what video_embed_field does with inline_entity_form, but it adds a dependency on yet another module and makes the data structure more complex.
- 🇧🇪Belgium fernly
I had to install a Fresh Drupal instance to figure out what core is using to establish a video_embed_field alternative. Older Drupal installations don't automatically have this "Remote video" media.
For anyone wondering how core works:
Core is using a plain text field type combined with the oEmbed URL field widget and oEmbed content field formatter. Also, this only works on Media entities of source type "Remote video".
So if you need to create a "core video embed field": create a new Media type with media source "Remote video" and add at least a plain text field for the video embed url with the mentioned field widget and formatter. Afterwards add a media reference field using "Remote video" media on the node type (or any other entity type) where the video_embed_field used to be.
(if I missed this obvious information, that would be my bad)