Allow HTML5 Video Tags in bbPress Plugin

February 19th, 2010 Jeremy Winter TechnologyWeb Development 0 Comments

bbPress Logo1 150x150 Allow HTML5 Video Tags in bbPress Plugin

About

This plugin allows the <video> and <source> elements to be posted in your bbPress forum. This makes it quick and easy for forum members to add videos to their posts.

Here is the list of allowed tags and allowed attributes.

<video>

  • src
  • type
  • autoplay
  • poster
  • controls
  • width
  • height

<source>

  • -src
  • -type
  • -media

Installation

1. Add the `allow-html5-video.php` file to bbPress’ `my-plugins/` directory.
2. Activate the plugin through the ‘Plugins’ menu in bbPress.

*Make sure you have set up your webhost to allow the correct MIME types for OGG and OGV files.

MIME Type: video/ogg
Extension(s): ogv ogg ogm

Frequently Asked Questions

What are some example embed codes?

Example #1 (Works in most modern browsers)

<video src="test-video.ogv" controls>
Your browser does not support the <code>video</code> element.
</video>

Example #2 (Should Work in all modern browsers)

<video controls>
<source src="test-video.ogg" type="video/ogg">
<source src="test-video.mp4">
Your browser does not support the <code>video</code> element.
</video>

What codecs are recommended?

Theora for .ogg and .ogv
.h264 for .mp4

Does it work with other video plugins?

Yes, it works with other video plugins (bbvideo and others).

Compatibility

Tested up to: 1.0.2
Requires at least: 0.8.4

Changelog

- 0.9 -
*initial release

Download Allow HTML5 Video

Allow HTML5 Video is based off of mdawaffe’s and qayqay12′s Allow Images plugin.

Technorati Tags: html5, bbpress plugin, bbpress plugins, allow video bbpress, bbpress video, bbpress download, html5 video, html5 source, bbpress forum plugin, forum plugin

Best Gaming Laptop for the Money (Jan 2010)
Glenn Greenwald Videos on Terrorism and Health Care

Comment with Facebook

No Comments