I would like to add HTML5 video or possibly replace(?) the existing video tag, parameters, etc. in the bbcode file. However, I've no idea where to start or even know if it's possible.
For example, using Firefox or Chrome, I know the code itself can be very simple:
<video controls width="" height="">
<source src="path_to_video/some_video.ogv">
</video>
<source src="path_to_video/some_video.ogv">
</video>
... and by disabling bbcode and html in the post it works. But that's not very practical since you lose your formatting and so on.
Looking at the bbcode.php I'm guessing I would need to define, say, html5video in the array, then in the tag and finally something in the content (parameters) section. And that's where I'm stuck. What would I place for the content?
Example:
... array
'html5video' => array('nested' => true, 'inurl' => true, 'allow_empty' => false),
... tag
|| ($tag === 'html5video')
... parameters
elseif ($tag === 'htmlvideo')
{
$html = parameters?
}
'html5video' => array('nested' => true, 'inurl' => true, 'allow_empty' => false),
... tag
|| ($tag === 'html5video')
... parameters
elseif ($tag === 'htmlvideo')
{
$html = parameters?
}
Any suggestions would be greatly appreciated.
Thank you,
Dan