TomNCatz / obsidian-gallery

Main Gallery to tag / filter / add notes to images. Display blocks to embed images inside notes. Display block to an image information
MIT License
41 stars 3 forks source link

[FR] Support online videos #12

Open wwjCMP opened 1 year ago

wwjCMP commented 1 year ago

Thank you very much for the continuous maintenance and feature updates of this plugin; you've done an excellent job, and it now mostly meets my needs. Here's a personal request from me:

Could you please add a feature to parse video URLs embedded in HTML syntax within Markdown files and enable the display of online videos in the gallery?

Here's the situation: When I'm building my movie and TV show information database, I often prefer embedding the real online video URLs to save local storage space, rather than embedding local videos. I use the following simple HTML syntax for that purpose.

If the gallery could support displaying online videos, that would be fantastic, even though I understand it's a special requirement for me.

Lastly, thank you for your hard work."

<video width="1080" height="480" controls> <source src="https://imdb-video.media-imdb.com/vi2053751833/1434659607842-pgv4ql-1683541736696.mp4?Expires=1694940366&Signature=iYFrYTE9Ik97nC8cegOuVLf56gpxxjFEBGuwED4NvL9qXkOqHl0wCQg4srMBy4tTTiKKQn-s~n9ijEKg9YYxqTliDK~Br2bm8n1OkFgzohwGA2MAO92ZE7fAIbIhchpEKr1Nse92jDIUPfuBPdvhpmkI65BEgE3oB61K9x4EfTvYTlBl3bF5Hhrla2L~sgN5zX9GWl~dA5oubDTXJa3Xav4JROoi6aIIwb-Iu1b0TXawvnvXiCZJUYec07cD6miyRkqtyEkqw4N1m2jgwl0ttX-yNm1dKaoUhV92DQJJjbamEkNGAq49uUM2Qudp4d~IiP9uSEGpRpp14dYfnMxZJA__&Key-Pair-Id=APKAIFLZBVQZ24NQH3KA" type="video/mp4"></video>
TomNCatz commented 1 year ago

This falls well outside of the capabilities and goals of the current plugin, but I can understand the value of a feature like this. Gonna put this in the icebox for later, but I'm going to take some design note for when I come back to it. If you have notes of your own to add about what and how you would like it to function feel free to add them as a comment.