Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube thumbnail in an image or file widget #291

Open
lorensansol opened this issue Jan 4, 2025 · 5 comments
Open

YouTube thumbnail in an image or file widget #291

lorensansol opened this issue Jan 4, 2025 · 5 comments
Labels
enhancement New feature or request

Comments

@lorensansol
Copy link

When entering the URL of a YouTube video in an image or file field, it would be great to preview its thumbnail, both in the widget and in the preview (also when inserting image URLs in markdown).

@kyoshino
Copy link
Member

kyoshino commented Jan 4, 2025

Actually the Video widget is coming shortly, of course with a thumbnail.

You can already enter a YouTube URL in a String field to see the preview 🙂

From the README:

When a YouTube video URL is entered in a String field, it appears as an embedded video in the preview pane.

@kyoshino
Copy link
Member

kyoshino commented Jan 4, 2025

Inserting a video to a Markdown field will also be supported because my client wants it. Basically I’m going to effectively solve these two issues:

@lorensansol
Copy link
Author

Yeah, I knew about the text string, that's cool 🤩.

I would love to be able to use the image widget but also have it support videos, both from the gallery and by URL and YouTube.

For this I see that I can use the file widget, which is fully functional. The bad thing is:

  • YouTube video thumbnail is not displayed.
  • It is not possible to filter files by type or extension.

If you create a new video widget with thumbnails, great, but if you restrict the selection of files only to video type, I would be forced to add one more parameter.

Wouldn't it be simpler to have a single widget of type file with a filter by type/extensions? For example “mimetypes”: [“image”, “video”, “text”, ...].

@kyoshino
Copy link
Member

kyoshino commented Jan 4, 2025

Yeah, I’m also thinking about adding a filter option to the File widget. That’s

The new Video widget is specifically for video, including YouTube/Vimeo and stock videos from Pexels/Pixabay.

@lorensansol
Copy link
Author

¡Genial, gracias!

@kyoshino kyoshino added the enhancement New feature or request label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants