Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

lightweight jQuery plugin for creating html 5 video tags, with fallback plans for quicktime or flash

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 demo
Octocat-spinner-32 README.textile
Octocat-spinner-32 jquery.videoize.js
README.textile

videoize

videoize is a simple jQuery plugin for creating html 5 video tags for capable browsers, with a fallback to flash or quicktime for IE and the like. videoize is a stand alone plugin that includes a minified version of the excellent jQuery SWFObject plugin for a standards-compliant way of embedding flash objects.

to call videoize, simply include the jQuery file and in your $(document).ready function call. videoize comes with the following options and override-able defaults =>

$("#videoize").videoize({
	// location of the mp4 video file
	mp4: "", 
	// location of the ogv file for firefox
	ogg: "",
	// location of the flash video player
	flashplayer: "player.swf",
	// location of video poster image
	poster: "",
	// video height
	height: "480",
	// video width
	width: 	"720",
	// autoplay video
	autoplay: false,
	// show video controls
	controls: true,
	// if set to true, the fallback player will be quicktime rather than flash
	quicktime: false
});

the element with the id of videoize will be emptied and replaced with the video. this gives you a way to provide a fallback message or content for users without support html 5 video, flash, and quicktime disabled.

Something went wrong with that request. Please try again.