Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

jQuery HTML5 / Flash media bridge. Attaches flash ExernalInterface to HTML5 video / audio elements.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 com
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 jquery.media_bridge.js
Octocat-spinner-32 playback.fla
Octocat-spinner-32 playback.swf
README.md

media_bridge

jQuery media_bridge is a simple plugin which provides a HTML5 api compatable flash fallback for un-supporting browsers. When created, the plugin maps the flash player ExternalInterface to the HTML5 video/audio tag's public methods / properties. This way both are controlled in the same manner, making enhancement easier later.

Usage

Setup a video or audio tag like normal, including src, poster blah blah. Set your source to a mp4/m4v file (see below for more info) and call .media_bridge on the element:

<video src="http://path_to_some.mp4" id="my_sick_player"></video>

$('#my_sick_player').media_bridge( options );

See the source for a list of available options. By default the plugin will add accessable controls using buttons and HTML5 range elements. To support usuability you should manipulate these as necessary (check out jQuerytools rangeelement for a good way to handle seek / volume).

why another one of these?

Because all of the existing "HTML5 players" always felt bloated. For instance, media_bridge assumes mp4 / m4v video files ( supporting the obvious f4v with flash ). Until the HTML5 spec is more solid and people can agree on a standard video format, this covers just about every possible scenario. If you'd like to support ogg, webm, blah blah, use something else. In our day to day work though, creating 4-5 different versions of the same video just to pat ourselves on the back and say "look we made HTML5!" just isn't that big of a deal.

We do however like the ability to skin a player with pure HTML/CSS. This makes it much easier to mesh into any site, and any situation. YouTube player support is also planned in the near future.

Something went wrong with that request. Please try again.