PDA

View Full Version : Mini Mods - HTML5 Embedded Video Player - BBCode


Coop1979
03-21-2010, 10:00 PM
This will work on all versions of VB.

With support for HTML5 in FireFox, Safari, and Google Chrome, it's now very easy to embed videos on your site without the need for a lot of special coding or plug-ins. The <video> tag is supposed to replace Flash by linking to video files in the same way that the <img> tag links to images. The only catch is that right now the video files have to be in either .ogg, .ogv, .oga, or .ogx formats. These are all open source formats and easy to find converters for.

Instructions:

Go to your AdminCP, look under Custom BB Codes, then click Add New BB Code.

Title: HTML5 Video
BB Code Tag Name: video
Replacement: <video src="{param}" width="640" height="360" controls>
Your Browser does not support the video tag, upgrade to Firefox 3.5+, Google Chrome, or Safari.</video>
Example: http://upload.wikimedia.org/wikipedia/commons/9/9d/Roomba_video.ogv
Description: Use this code to embed ogv HTML5 videos.

Click "Save" and...
Done!

Floris
03-22-2010, 04:15 PM
<video width="640" height="360" poster="poster.jpg" controls autoplay>
<source src="{param}" type="video/ogg"></source>
</video>

perhaps better?

the one
01-10-2016, 06:48 PM
Hello its only me again,

This code works fine but i have noticed if i want to post more than one video in a post it wont let me.

Do i need to add some thing to this code below to enable me to do this

<video src="{param}" width="640" height="360" controls>

Many thanks

Malc