Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi there,
We lost our video embed with the switch to the media library :(.
Current assumption is that we need to move our video solution to use the "remote video" type and field, and disable the default video
- create new media type "remote video"
- integrate with media library embed field in WYSIWYG
- test and report back
If it works
- remove old 'artefacts' - I assume the media type and one module
Ta,
Heike
Comments
Comment #2
HeikeT CreditAttribution: HeikeT at Sparks Interactive commentedThe awesome people of the Video Embed Field module have also updated their page with solutions!
https://www.drupal.org/project/video_embed_field
Comment #3
HeikeT CreditAttribution: HeikeT at Sparks Interactive commentedComment #4
DanielVezaNot prod ready. This doesn't work in Sector yet. We override the media.settings.yml file unnecessarily (See #3080497: [Meta] Cleanup our config files).
So we need to remove that file.
But we also need to provide an update hook for existing sites. We need to add the
oembed_providers_url: 'https://oembed.com/providers.json'
key & value to media.settings.yml
Comment #5
Thangvu CreditAttribution: Thangvu commentedHi Daniel,
I have attached the patch as required, I test it on the local site and it works fine for me. please check it again when you apply it. Cheers.
Comment #6
DanielVezaThis isn't needed. New sites will already have the new config, and the update will run on existing sites
This should be a bit more descriptive. The param and return also isn't needed in this case.
This creates a new config entity called media.settings.yml. We want to alter media.settings and add the new key & value to the end.
Comment #7
Thangvu CreditAttribution: Thangvu commentedHi Daniel,
This is a new patch, I deleted some unnecessary in the code. Please check it out
Thang.
Comment #8
Thangvu CreditAttribution: Thangvu commentednew patch file, deleted some comments.
Comment #9
Thangvu CreditAttribution: Thangvu commentedComment #10
DanielVezaHere's a mega patch with all changes.
This swaps the sector starter kit over to media library and provides a minor install task to allow older Sector sites to take up the media library if they decide to.
Comment #13
DanielVezaCrediting edmonkey & emma_selley for all their internal testing for this change.
Comment #15
DanielVezaThanks all!
Comment #16
DanielVeza