[TW5] HTML Video Tag - 404 with Tiddlywiki/Nodejs

85 views
Skip to first unread message

David B.

unread,
Aug 6, 2015, 12:33:23 PM8/6/15
to TiddlyWiki
Community,

I've been experimenting with TW5 for a few weeks. I initially started with the single file (i.e., empty.html) Chrome setup and was able to test that all the features I needed worked including playing MP4 video clips using the HTML5 <video> tag as follows:

<video controls>
  <source src="Credits.mp4" type="video/mp4">
  Your browser does not support the <code>video</code> element.
</video>

For actual use I decided to use the Node.js setup. I am able to access/edit my tiddlers from the host PC as well as my laptop running on the same network. However, I am not able to playback any videos. The Chrome console shows GET http://192.168.1.67:8080/Credits.mp4 404 (Not Found).

The Credits.mp4 file exists in the same folder as tiddlywiki.info as well as the tiddlers folder.

Questions

Is this scenario supported by TW5?

If so, any suggestions on why the 404 error?

Thank you,

David


Jeremy Ruston

unread,
Aug 6, 2015, 12:49:29 PM8/6/15
to TiddlyWiki
Hi David

I'm afraid TW5 isn't designed to serve static files such as your video. The reason is that can't do so as efficiently and securely as an off-the-shelf web server. You'll need to host the video on a separate web server and then link to it from the TW5 site.

Best wishes

Jeremy.


--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/dc21f982-22ba-48bf-bd7a-4c91908bb1b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Michele Zaffalon

unread,
Aug 7, 2015, 4:57:22 AM8/7/15
to TiddlyWiki
Hi David,

This discussion may be relevant for you.

Best,
michele

David B.

unread,
Aug 7, 2015, 2:05:52 PM8/7/15
to TiddlyWiki, jeremy...@gmail.com
Thank you for the quick response.

I was able to setup Nginx as a proxy server. The video tag is now working as I had hoped.

Regards,

David 
Reply all
Reply to author
Forward
0 new messages