Skip to content

Potential Interfaces

Charlie Hoey edited this page Jan 20, 2014 · 12 revisions

There's a few different ways to expose the video player functions to the library's users. I'm not sure which is really best, and I guess ideally it would be nice to avoid requiring JQuery, but it does make it pretty darn easy for most people to use to create new things.

Generic

v.play();
v.pause();```


**JQuery**

$("#videoPlayer").Valiant(); // instantiates player on video element, fills specified size with standard controls and mouse tracking
$("#videoPlayer").Valiant().pause(); // pauses video etc etc
Clone this wiki locally