Problem/Motivation
As discussed in #2699983: Update modules to current releases MEEV has been deprecated in favour of VEF. The video_embed_media (VEF sub-module) has a script which converts the bundle and content to the new format, if that is useful to lightning.
Proposed resolution
Add VEF in favour of MEEV.
Remaining tasks
Patch.
User interface changes
Support for YouTube + Vimeo out the box instead of YouTube, Aol, Grab Networks and Wotchit.
API changes
None. Same fields are supported.
Data model changes
Updated bundle type. Updated field name.
Comments
Comment #2
balsamaComment #3
phenaproximaReady for review in the 8.x-vef branch.
Comment #4
balsamaI tested updating from RC4.
1) I'm unable to create new video media entities and get the following fatal in my apache log:
PHP Fatal error: Call to a member function downloadThumbnail() on a non-object in /docroot/profiles/lightning/modules/contrib/video_embed_field/modules/video_embed_media/src/Plugin/MediaEntity/Type/VideoEmbedField.php on line 512) The Label for the field in the video bundle is "Video URL". We used to support URLs and embed codes. Do we only support URLs now?
Comment #5
phenaproxima1) I was seeing those, but I thought I fixed them all. Can you provide exact steps to reproduce?
2) We are supporting whatever Video Embed Field supports; looks like that is URLs only. At least, that is what VEF's out-of-the-box plugins support. It's really up to the individual provider plugins. I can ask @Sam152 if this is a regression, but my knee-jerk imagining is that VEF would support at least whatever MEEV did.
Comment #6
balsamaHmm as far as #1, the steps were just
If you try to create a video from the Media Library, the widget just hands and there is a 500 in the console. If you try to create from /media/add, you get a WSOD. Both methods had the same error (above) in the apache logs. I had two or three video entities in the database prior to updating to the VEF branch.
I can make sure this is reproducible once I'm on the ground in NOLA.
As far as #2, we'll just need to update some of our messaging around URLs. The Media Library Widget instructs users to paste the URL _or_ the Embed Code.
Comment #7
sam152 commentedI can confirm that pasting embed codes isn't currently supported. If support was necessarily, all you would need to do is extend the provider and update the ::getIdFromInput method to extract the ID from the embed instead of the URL.
As far as the first issue is concerned, it simply looks like IDs can't be extracted from the existing media entities after the upgrade. This could be for a few reasons:
Solution: either track down this problem or make the existing code more resilient as to not fail when this situation is encountered (with a corresponding CR outlining the changes).
Comment #8
phenaproximaI am reproducing @balsama's issue. Will look into this and correct it.
Comment #9
phenaproximaNice catch, @balsama! Fixed in the 8.x-vef branch, and manually tested.
Comment #10
balsamaCool. Everything works as expected this time for me too.
Testing Steps:
Result:
Caveats (might warrant their own issues)
We should open followup issues as appropriate.
Thanks @phenaproxima and @Sam152!
Comment #12
balsamaCommitted. Thanks!
https://travis-ci.org/acquia/lightning/builds/129332675