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.
Just that. Great module. Just wondering if is there any way to provide a custom preview image for youtube video. The default image is shown in a very poor quality.
Comments
Comment #1
chefnelone CreditAttribution: chefnelone commentedUPDATE: close to get it...
I'm trying to get this using rules to set the path of the image.
I added an action to Set a data value for the Data selector: node:field-videos-field:thumbnail-path
But when I save the action I get the message:
The selected data property doesn't support writing.
What am I missing here?
Comment #2
plopescHello
Because of the current module architecture, is not possible add a custom thumbnail image. That image is generated automatically when the field is saved.
That's the reason I marked the thumbnail-path property as not writable for rules. You could try to do that adding
'setter callback' => 'entity_property_verbatim_set',
to the thumbnail_path in thevideo_embed_field_data_property_info()
function.Not sure if this would work, you can try it and give me feedback...
Comment #3
bittu.rohan CreditAttribution: bittu.rohan commentedYou can use the Metatag module to provide a custom preview picture of the video in social networking sites. Not sure though if this is what you wanted.
Thanks,
THE PULP
Comment #4
jasonawantClosing, marking this as duplicate of https://www.drupal.org/node/2883932