pub-dev icon indicating copy to clipboard operation
pub-dev copied to clipboard

Consider re-intepreting youtube image links as embedding videos

Open jonasfj opened this issue 5 years ago • 5 comments

Following markdown image links could be used to link to a youtube video using a thumbnail. Perhaps we should investigate if we can directly embed these.

There is perhaps some concerns around performance, and whether it would be annoying with videos embedded in markdown.

Note: This is not a fully designed feature yet, just an idea.


[![Video Embed](http://img.youtube.com/vi/<ID>/0.jpg)](http://www.youtube.com/watch?v=<ID>)
[![Video Embed](http://img.youtube.com/vi/<ID>/1.jpg)](http://www.youtube.com/watch?v=<ID>)
[![Video Embed](http://img.youtube.com/vi/<ID>/default.jpg)](http://www.youtube.com/watch?v=<ID>)

jonasfj avatar Feb 23 '21 18:02 jonasfj

@jonasfj, this would slow down the site quite a bit. But the current way of redirecting is not a pleasant experience either, would it be possible to open the embedded video within a pop up?

sameeerkashyap avatar Apr 28 '21 06:04 sameeerkashyap

Embedding the image wouldn't be slow... maybe we should just do like we do on the bottom of the landing page. Opening in an on-screen popup is certainly an alternative to using a link to youtube, maybe we should consider that in both places.

5TMRkpAoYwLothb

jonasfj avatar Apr 28 '21 06:04 jonasfj

Oh, my bad, I thought you were talking about embedding videos, yes images would be no problem. Isn't this issue for the landing page? where else are you considering adding the thumbnail and videos?

sameeerkashyap avatar Apr 28 '21 07:04 sameeerkashyap

Markdown in readme's maybe...

jonasfj avatar Apr 28 '21 07:04 jonasfj

I think I prefer standard links over embedding the video-player.

But detecting links like these, and enhancing it with a hover-effect like on the "package of the week" and documenting it would be nice.

sigurdm avatar Nov 21 '24 10:11 sigurdm