Add a preview for OEmbed links
benfeather opened this issue · 6 comments
What are you trying to do?
It would be helpful to have a preview when using Hyper to link videos via OEmbed.
What's your proposed solution?
Could you add the option to output a video preview for the link?
This could be another native field that we could add to the input.
Additional context
No response
I like the idea of this being another native field to include so it's not tied to the "Link" field. For example:
If I were to add the preview on the half-width link field to the left, it would look pretty unbalanced next to the "Link Text".
My immediate concern though, is how to format the preview so as not to take up oodles of the screen or in a too-small area. For example:
Updated for the next release. To get this early, run composer require verbb/hyper:"dev-craft-4 as 1.1.17"
.
I've also had to do some iframe wrangling to ensure it's responsive. Some providers like YouTube provide it, while others (X/Twitter) don't, and they don't look so hot being full-width, as there's a lot of white space (see above). YouTube on the other hand responds to the width and looks nice.
Should be under "UI Elements"?
Ah, my mistake! It's there, and it looks great. Thanks again.