Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johnpolacek/SimpleVid

jQuery Plugin for Fluid Video
https://github.com/johnpolacek/SimpleVid

Last synced: about 2 months ago
JSON representation

jQuery Plugin for Fluid Video

Awesome Lists containing this project

README

        

#Responsive Video

jQuery Plugin for a video player that scales to fit its container

##How to Use

Add video element to your html inside a container div that is styled to scale with the size of the browser window







First, link to jQuery and then to vidobject.js. Next, create a new vidobject and apply any custom settings to it. Last, use vidobject to target the video element(s) on the page.




var vidobject = new $.vidobject({
player: 'swf/vidobject.swf',
buttonColor: '#FFFFFF',
accentColor: '#BBBBBB',
backgroundColor: '#111111',
scaleVideo: true,
fullScreen: true
});
vidobject.embed("myVideo");

Parameters are:

**player:** path to the vidobject.swf player
**buttonColor:** video controls button color (default is '#FFFFFF')
**accentColor:** video controls accent color (default is '#BBBBBB')
**backgroundColor:** video controls background color (default is '#111111')
**scaleVideo:** set to false if you don't want the video to scale
**fullScreen:** set to false to disable full screen mode

Responsive Video Object created by John Polacek
Twitter: http://twitter.com/#!/johnpolacek
Blog: http://johnpolacek.com