Forum Videos
-
#1 Embeds are back
#2 Better Video Support
Due to popular demand I added more support for small videos to the forum.
The upload size limit is now increased to 16MB and supports the most common video filetypes: "mov, mkv, webm, ogg,.."The uploaded video needs to be wrapped in a html video tag to be displayed in the post and can be customized with the html video elements (controls, loop, autoplay..)
Just upload the video in with "Upload File" dialog, and copy the reference into a
<video> src=""
tag.<video width="520" height="280" src="/assets/uploads/files/1738592343911-2025-02-03-15-13-46.webm"> </video> <!-- use or convert your videos to .webm to reduce filesize --!>
With sound..
<video width="520" height="280" controls> <source src="/assets/uploads/files/1738588497039-2025-02-03-14-12-07.mkv" type="video/mp4"> </video> <!-- .mkv needs type="video/mp4 and is not supported in all browsers --!>
Loop and autoplay video
<video width="520" height="280" loop autoplay > <source src="/assets/uploads/files/1738585791656-donut.mov"" type="video/mp4"> </video>
Oh, and because we now added html support to the post composer, we now can also do stuff like this:
and add html and inline css to our posts.
-
@Dominik-Mayer
This is great, thank you! :-)But the video after "With sound.." is not playing for me...
-
@Dominik-Mayer
And the embedded video is played automatically. This may not be optimal. -
Oh, the
.mkv
trick might not work on all browsers.. would have to convert to.webm
then..:) Yeah, autoplay is not activated by default.
bst,d
-
@Dominik-Mayer said in Forum Videos:
With sound..
hey, that's my snippet! Mom, I made it!
You forgot the mention github post previews!
-
@Dominik-Mayer Noice! Will this retroactively add embeds for old posts?
-
@d-healey It does for github.
-
@Dominik-Mayer Nice!
-
@Dominik-Mayer Great news, thanks!
-
@Dominik-Mayer Thank you.
-
@Dominik-Mayer Thank you.