XF 2.1 Custom bbcode for both video url and poster url for self-hosted html5 video

Nitaaiji

Active member
Code:
<video style="width:100%;height:100%" poster="{option}" src="{text}" preload="metadata" controls loop></video><br />
<a href="{text}">Download Video</a>.

[video="posterurl]videourl[/video]

I made above html replacement and bbcode tag because I wanted to see both different video url and poster url in each self-hosted html5 video I will embed. I know both of the above are wrong somewhere. Can someone please help me with the right ones for both above? Will be a great help and will be very thankful for it.
 
Top Bottom