So I don't think it will work this way - trying to access it by tw import.  
You have to think of it this way - *nginx is serving the file* within 
tiddlywiki.  nginx has to be able to serve the file separately on its own.  
Here is the code I put in for the video you see in my wiki:

```
<$videojs controls="controls" fluid="fluid" width="800">
  <source src="https://digitalap3.com/christinemessages_0.mp4"; 
type="video/mp4">
</$videojs>
```

So I put the video in a place that I can directly access it from nginx if I 
copy paste the address in the src into the address bar.  It is the same for 
external images.  External images or any files are not imported directly 
into tiddlywiki.  Nginx is serving the file to the browser inside of 
tiddlywiki.  This is what makes relative addresses as your src tricky.  
Nginx is looking relative to the webroot in the website's config file.

On Wednesday, December 9, 2020 at 10:42:06 AM UTC-5 [email protected] 
wrote:

> I'm getting closer!
>
> One thing I missed was to import the videos using tiddlywiki import, 
> rather than just copying them from the server file system into mywiki 
> directory.  So I was missing the .meta file.
>
> Now if I put this imported name within the <source 
> src="BigBuckBunny_SampleVideo_1280x720_1mb.mp4" type="video/mp4"/> 
> statement, I get an error message.
> If I just put the imported video name within {{ }} then I can play it, but 
> without any controls of the visual.js / Twtube plugin, see below.
> BTW I can play without issue your video that I copied into my test 
> tiddler, probably because this is a network location rather than a server 
> file.
>
> So all of this seems to lead to a file location or permission problem.  
> I'll have to play with Firefox Web Developer tools to find the address / 
> file location that is asked.
>
>
>
>>>>>>>

-- 
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/5ab6db11-39b4-4561-921d-5f0449264bdan%40googlegroups.com.

Reply via email to