I use transclusion. My solution for me on OS X is the following.
First I create a new tiddler and name it video. The body of the tiddler is
as follows
\define videoLink()
file:///Users/Mark/Desktop/Training Material/videos/$(currentTiddler)$
\end
<html>
<video controls=controls>
<source src=<<videoLink>> >
</video>
</html>
I define the folder where all of my videos will be located and it uses the
tiddler name to build the path to the video.
I then fill in a generic HTML5 video template, that places the path to the
video in the source tag.
I then create a new tiddler, I name it.
example.mp4
For the body of the tiddler, I enter
{{!!title||video}}
The braces indicate we are transcluding a tiddler. The double exclamation
points mean we are transcluding a specific field of a tiddler, in this case
the title. The double pipes is specifically used for a template tiddler.
The template tiddler is simply called 'video'.
When I use it in a tiddler, I simply write
{{example.mp4}}
and it shows the video.
Note this solution is not the best way to make custom video sizes or use
poster images. I also rip all my videos through Handbrake to mp4 format.
Thanks
Mark Kerrigan
On Friday, June 9, 2017 at 4:06:02 PM UTC-7, Mark S. wrote:
>
> If your browser can play them, then there's a chance you can play them
> inside of TW. At least in windows, do a right click on the file name and
> "Open with" and select your browser.
>
> If that works, then you might be able to set up a tiddler by setting the
> _canonical_uri field (point to video) and content type. For the mp4 I
> tested, the content type was video/mp4, but you might have to look for mime
> type if you have a different type.
>
> If you can't figure out the mime type, or it doesn't seem to work, you
> might still be able to use an iframe. e.g.:
>
> <iframe src="path_to_videos/my_video_name.mp6" width="90%"
> height="500px"></iframe>
>
> For ease of use, you might consider trying Mat's Ricklinks (
> http://richlinks.tiddlyspot.com/)
>
> Good luck,
> Mark
>
> On Friday, June 9, 2017 at 1:04:22 PM UTC-7, JWHoneycutt wrote:
>>
>> How do I call up a local video?
>>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/dac3d802-649b-4e72-bd9d-873a8774b2ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.