Problem/Motivation
https://www.drupal.org/project/drupal/issues/3298701 was included in Drupal 10.3. If you update to 10.3 (or later) and use video_embed_field with your site set to use private local files, derivatives of the remote video thumbnail can no longer be generated due to schema mismatch ("The scheme for this image doesn't match the scheme for the original image"). The video_embed_field module seems to be hard coded to download and store the video thumbnail in the public filesystem (and record the file in the file_managed table), rather than being a config option on the video embed field or adhering to the site-wide local file system setting. When Drupal tries to create a derivative/images style it attempts to create one in the private files area, which fails.
Steps to reproduce
- At
/admin/config/media/file-systemset "Default download method" to "Private local files served by Drupal." - Ensure "Private file system path" exists on the admin config screen above and double-check that it's writable at
/admin/reports/status
-- look for "File system" and make sure it's "Writable (private download method)". - From a media type using video_embed_field for remote videos, add a new video from Youtube or other enabled provider.
- Visit the media content table listing at
/admin/content/mediaand notice the video thumbnail image derivative (image style) isn't displayed (broken image). A generic video thumbnail may display in it's place. - Look at recent log messages (
/admin/reports/dblog) and view recent "access denied" errors to find one related to video thumbnail not being generated (message should beThe scheme for this image doesn't match the scheme for the original image).
Proposed resolution
Add an option, per video embed field, to set the thumbnail location including schema (like core remote video media does) or use the site default to determine where to download and store video thumbnail images.

Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|
Issue fork video_embed_field-3506832
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
mably commentedHi @timwood, I tried to implement a simple solution that uses the Drupal system file default scheme.
Could you give it a try and see if it fixes your problem?
Comment #5
timwoodHi @mably. Thanks so much for the MR/patch! I like the simple solution you've implemented and after testing it against the 3.0.0-alpha4 release, I can confirm it does fix our issue. Original video thumbnail and image style derivatives are both stored in our site-wide default private files scheme.
Comment #7
mably commented