On Sunday, August 16, 2020 at 10:02:03 AM UTC-7, Man GuyDude wrote:
>
> how can you take a video you imported and use it in the video html
> <video width="320" height="240" controls>
> <source src="nameofmyimportedwebmtiddler.webm" type="video/webm">
> Your browser does not support the video tag.
> </video>
> all i have is that and the video doesnt load but if i use a web link it
> does
>
TiddlyWiki actually handles video/webm as a tiddler content type! So,
instead of using the <video> HTML tag, try this:
1) Import a webm file into your TW. This will create a tiddler containing
binary data encoded into base-64, with type="video/webm"
2) If you view that tiddler, you will automatically get a <video> element
that is sized to fit the tiddler.
3) Use the <video> control to play the video.
4) To embed the video in another tiddler and scale it to fit a specific
size, you can use transclusion, like this:
<div style="width:320px;height:240px;">
{{NameOfVideoTiddler.webm}}
</div>
Note: if you omit the height:... attribute, the video will automatically
scale in proportion to the width.
enjoy,
-e
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/784d42fa-573d-4f40-bc51-322f26af863do%40googlegroups.com.