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

chefnelone’s picture

UPDATE: 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?

plopesc’s picture

Hello
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 the video_embed_field_data_property_info() function.

Not sure if this would work, you can try it and give me feedback...

bittu.rohan’s picture

You 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

jasonawant’s picture

Status: Active » Closed (duplicate)

Closing, marking this as duplicate of https://www.drupal.org/node/2883932