spicywebau / craft-embedded-assets

Manage YouTube videos, Instagram photos and more as first class assets in Craft CMS
MIT License
171 stars 36 forks source link

Use YouTube poster for image thumb in Craft 5 CP element cards #283

Open chrisrowe opened 6 days ago

chrisrowe commented 6 days ago

What would you like to see added to or changed in Embedded Assets, and why?

When choosing a YouTube embed the Craft 5 element card image shows the JSON file type, it'd be great if this plugin could instead use the poster (the image propery) from within this file?

ttempleton commented 5 days ago

This should be working already - is the image showing in the assets index? If so, could you please post an example of a YouTube video that's not showing the image on the card?

chrisrowe commented 5 days ago

Aha thank you, yes it works for local filesystems but it seems that it's not working on a site staged on Servd https://servd.host/ their assets are stored offsite on an S3 compatible CDN.

Looking at _configureAssetThumbnails() it appears the $thumbnailUrl is correct and $event->url is being updated but the front end still shows the JSON file SVG, nothing of interest in the log files either. Any ideas or things to look out for?

ttempleton commented 3 days ago

I've run a test with an (admittedly different) S3 service and that's worked for me. I'll ask my colleagues if they've noticed any issues, but I have a couple of questions just to try to narrow down the cause: