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!
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!