local video with thumbnail macro

125 views
Skip to first unread message

stefan infp

unread,
Dec 1, 2018, 5:11:45 AM12/1/18
to tiddl...@googlegroups.com
Hi, I would like to use local videos in TiddlyWiki with thumbnail images.
I use Windows 10 and Firefox 63. The video files are mp4.
I found some info in the link below:
but It did not work for me.
I would like to use a macro to link to a local video stored in a specified folder and display a thumbnail image of that video stored in the same folder as the video. I would like a similar approach as the image thumbnail macro works:

\define imageit(image:"image.jpg")
<a href=$image$ target="new"><img src=$image$ width="25%" height="25%" /></a>
\end

<<imageit "folder\image.jpg">>
which actually works perfectly.

I would appreciate the answer.

Greg Davis

unread,
Dec 1, 2018, 5:08:50 PM12/1/18
to tiddl...@googlegroups.com
Hi Stefan
Not sure what problem you had with the post you linked. I put together a collection of examples of macros for various media at: http://av-macros.tiddlyspot.com/

HTML5 video supports including a poster so you could use the example Video and Cover Poster in Local Folder as a start. You can drag the link to the macro there to your TiddlyWiki (its actaul name is $:/_macro/gd/videolocal)

the macro command is <<videolocal "folder" "filename" "poster" "title" "origin">>

  • it is based on a 16 by 9 ratio video, you could change the height and width in the macro itself
  • folder - assumes a relative path from the location of your TiddlyWiki, if not in the same folder a slash / must be added to the end
  • filename - video filename without the extension
  • poster -  must be in the same location as the video, it must include the file extension
  • title - title to display beneath the video (optional)
  • origin - source url or short note (optional)
You could modify to suit your use case.

Hope that helps,
Greg

stefan infp

unread,
Dec 1, 2018, 7:36:55 PM12/1/18
to TiddlyWiki
Thank you for the amazing help! I tried the video macro and it worked excellent. This way I can use TiddlyWiki as the ideal tool to manage all my data without embedding local files in the TW single file. Thanks very much!

Greg Davis

unread,
Dec 2, 2018, 7:24:10 AM12/2/18
to TiddlyWiki
Stefan, you're most welcome. Glad you got it workiing.

Enjoy TiddlyWiki,
Greg

Mohammad

unread,
Dec 2, 2018, 10:38:33 AM12/2/18
to TiddlyWiki
Nice work Greg!
 Thank you for sharing!

Best
Reply all
Reply to author
Forward
0 new messages