Mothra wrote:If you've got one with audio, and a general gist of what I can change in the script, I can give it a shot:Code: Select all
<p>
<center>
<video controls="" autoplay="true" loop="true" style="max-width:1000px;">
<source src="{URL}" type="video/webm">
</video>
</center>
</p>
Fiddled with a test doc. Changing it to autoplay="false" keeps it autoplaying. Removing the autoplay="true" part entirely stops the autoplay, and gives you a big play button on it so you know it's a video/animation.
https://my.mixtape.moe/jhjcxn.webm is a clip from Parks & Rec. I won't embed it because it'll start playing, but there's a testbed for you.
As far as adding optional parameters, I am at a loss. Everything I can find says you'd just need to define multiple bbcodes. I don't know how quote and quote= work, quote= might just be its own defined bbcode. So maybe there would need to be two commands, one for autoplay and one for not, so that videos that are like videos can be handled appropriately, but webms and mp4s that are just replacing animated gifs don't need to be individually clicked on.