How to embed video using safe_dns_example?

stupid question :open_mouth:

I just tried to include a small video via html5

<video width="320" height="240" controls>
  <source src="catVideo.mp4" type="video/mp4">
Your browser does not support the video tag.

doesn’t work :confused:

Error :: File Not found

is this not possible or did I do something wrong …?
(I simply put the video in the same folder the html-file was)

ps: I could never support a safe network where it is not possible to upload cat videos!!!


I think you need provide the whole link. Your source src should be, “/home/riddim/videos/catvideos.mp4” Something like that. Html is weird like that.

1 Like

hmhmm - when i open the html “the normal way” everything works fine

just when i try to open it via the safe_dns_example -> firefox plugin the error occures :open_mouth:
but thanks for the input! I’ll try the complete link and see if the error is introduced by the dns_example!

EDIT: Error :: File Not found
still doesn’t work for me :’(

This is a current limitation, but there is a workaround for that. The full path has to be provided.

For example, href=safe:mydomain/catvideos.mp4.

For usage example, this is how the template in the example loads its css at present. The variables SAFE_SERVICE and SAFE_PUBLIC are replaced at runtime.

This section in the README explains on how to map the pah by giving the complete url with the SAFE: scheme.

Am hopeful of overcoming this limitation in the near future, so that as application developers we stick to one standard rather than learning a new one. (fingers crossed :smile: )


ok - i’ll read&try later :open_mouth:

thanks! @Krishna_Kumar