[Block request] “Advanced” video block
-
Hey guys,
I don’t know if this one is doable, but it’d be SUPER super useful – would it be possible to get a “Video Block” where a creator can declare multiple video sources?
So it’d output something along the lines of:
<video width=”640″ height=”480″>
<!– HTML 5 browsers will play one of these –>
<source src=”/myvideo.webm” type=”video/webm”>
<source src=”/myvideo.mp4″ type=”video/mp4″>
<!– Option to set a “fallback” image maybe? –>
<!– Or maybe just a note along the lines of –>
You need an HTML 5-capable browser to display this video.
</video>You could also then allow control over the video attributes, such as “display video controls”, “autoplay video”, “mute video” (https://www.w3schools.com/tags/tag_video.asp#optional-attributes)
This would’ve been a life saver for me recently – I ended up using just a custom HTML block in the end, but it was fiddly ??
- The topic ‘[Block request] “Advanced” video block’ is closed to new replies.