As I mentioned, you should start by testing if your browser can play the 
particular file. If your browser can't play it, there's no TW magic that 
will change that. Once you have determined that the file will play in your 
browser, you can cut the address out of the url line and hard-code it into 
the <video> tag.

For me the video tag didn't work. A frame would form, but the movie 
wouldn't play. The iframe approach seemed to be more reliable. You can wrap 
the iframe as a tiddler template or as a macro, depending how you plan to 
process your movie's (e.g. as tiddlers with same name as the movie, or as 
tiddlers with a field with the name of the movie, etc.)

Good luck,
Mark

On Saturday, June 10, 2017 at 10:42:10 PM UTC-7, JWHoneycutt wrote:
>
> Thank you Mark S and Mark Kerrigan!
> I am on macOS, so I am trying Mark Kerrigan's transclusion example.
>
> My pilot video is at: `///Users/jwh/Movies/video.mp4`
>
> So I created a tiddler: 
>
> !!title: 
> `video` (but I have also tried `video.mp4`)
>
> !!body:
> `\define videoLink()
> file:///Users/jwh/Movies/$(currentTiddler)$
> \end
> <html>
> <video controls=controls>
> <source src=<<videoLink>> >
> </video>
> </html>`
>
> ''I assume the `$(currentTiddler)$` was literal''
>
> !!content type:
> `left blank`
>
> ''I don't understand this next instruction: "I then fill in a generic 
> HTML5 video template, that places the path to the video in the source 
> tag."''
>
> *What is a "generic HTML5 video template" - is that a "Type:" that doesn't 
> pop up in the pick list?
>
> *By "path to the video in the source tag" - should I create a tag pill 
> with the video path as its name? Put that long tagname into one of the 
> following tiddlers?
>
> Then I create a tiddler title: `example.mp4`, body: `{{!!title||video}}`
>
> Then I create another tiddler title:`play it already`, body: 
> `{{example.mp4}}`
>
> I get a tantalizing little black video box that does not respond to 
> clicking the play button.
>
> I feel like I am getting close
>
>

-- 
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/5e3abce0-f1c3-4838-9c9b-d79923010342%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to