New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local video #344
Comments
You could always upload it to YouTube but make it unlisted. |
Thank you for your answer. For now I found a way by saving the html from strut and adding embed video in the code. All the best |
@mxardre Well, I think you could open up the Markdown editor and put the embed video there. |
I tried this in the markdown but nothing showed up : |
@mxardre What if you save it and open the resulting HTML? |
Is |
both of them does not work actually. |
That's why I asked, I wouldn't expect either of those to work. Webpages (Strut, for example) aren't allowed to load files from your local disk for security reasons. What you've got should work just fine if you put the video on a webserver (a local one is fine) and include it with an One very (very) quick way to do that would be to use Python's built-in webserver:
Then set the embed's src to Keep in mind this will only work locally. If you share your strut presentation with anyone, the video won't work for them. |
Oh, and since you have Strut running locally, it's possible that you can just copy the video file into the same directory as Strut and reference it under the same domain. I don't remember the specifics of Strut's local development environment though. |
Thank you very much for your help. |
Hmm... I have no idea why the server crashed. You could always try a different local webserver. I've had good luck with the |
Doh, my mistake, you're using |
thank you very much. |
Ok, finally I just save the html file and edit it. Thank you all for your help |
I don't think it's a big issue. No web-based presentation framework will be able to load arbitrary files from your hard drive, as that would be unconscionably insecure. If you want a video or any type of file to be available on the web, a web server is necessary. One possible solution is to embed the video in your presentation, using a Data URI. As a warning, the base64 string generated will be HUGE, possibly larger than your clipboard allows. But if you want to try that, here goes:
In all likelihood, your video will generate a string so big that this isn't going to work. I only mention it because I've used the same process for embedding other, smaller filetypes into strut presentations. |
So I'm not using strut for the rigth purpose... Many thanks anyway! |
Hi, and thank you for this cool tool.
I'm struggling with videos.
How can I upload my local video in a presentation?
I'm running on a local build strut.
All the best
The text was updated successfully, but these errors were encountered: