-
Hi! I'm trying to add a video on my web-page while using leptos. It works fine with html-code from YouTube, but then I need to download video from my filesystem I'm lost. Using
and 404 error. I've tried use server side, but in this case I have only a preview of video :( Is there some another way for videos and, maybe, other media? Leptos version: 0.6.11 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I was searching for alternatives and I've found it! Leave it here for anyone who would like to use it: I've made my small server that takes videos from filesystem and sends them with This should be corrected on client side:
|
Beta Was this translation helpful? Give feedback.
I was searching for alternatives and I've found it! Leave it here for anyone who would like to use it:
I've made my small server that takes videos from filesystem and sends them with
tokio_util::io::ReaderStream
.It's important to give headers (Content-Type and Content-Length) for Response.
This should be corrected on client side:
http://
is very important event if you just run your server from console.