vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=238839

HTML5 Embedded Video Player - BBCode
by Coop1979
22 Mar 2010 16:01

1 Attachment(s)
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: [video]http://upload.wikimedia.org/wikipedia/commons/9/9d/Roomba_video.ogv[/video]
Description: Use this code to embed ogv HTML5 videos.

Click "Save" and...
Done!

Floris 22 Mar 2010 17:15

<video width="640" height="360" poster="poster.jpg" controls autoplay>
<source src="{param}" type="video/ogg"></source>
</video>

perhaps better?

the one 10 Jan 2016 19:48

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


All times are GMT. The time now is 08:38.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.