you can find this project here
A jQuery plugin for creating cross browser HTML5 video with Flash fallback.
$("video").video({"swf":"swf/video.swf"});
Optional arguments:
- swf (type: String, default: video.swf) Path to the video swf.
- video (type: String, default: video.m4v) Video to play if the src attribute is unavailable.
- params (type: Object) Flash params
Optional params:
- menu (type: String, default: false)
- allowscriptaccess (type: String, default: always)
- wmode (type: String, default: transparent)
- quality (type: String, default: high)
$("#videoPlayer").bind("stateChange", stateChangeHandler);
stateChangeHandler = function(event)
{
log("state : " + event.state);
};
$("#videoPlayer").bind("videoProgress", progressHandler);
progressHandler = function(event)
{
log("currentTime : " + event.currentTime);
log("duration : " + event.duration);
log("loaded : " + event.loaded);
};
$("#videoPlayer").video("play");
$("#videoPlayer").video("pause");
$("#videoPlayer").video("stop");
$("#videoPlayer").video("seek", 4000);
$("#videoPlayer").video("seekPercent", 0.5);
Scrubs through the video at the increment defined (in milliseconds) every 100 milliseconds. Use a negative number to scrub backwards. This code scrubs through the video by 500 milliseconds at intervals of every 100 milliseconds.
$("#videoPlayer").video("scrubStart", 500);
$("#videoPlayer").video("scrubStop");
States:
-
waiting
-
ready
-
ended
-
loading
-
playing
-
paused
$("#videoPlayer").video("getState");
Playback modes:
-
html5
-
flash
-
no
$("#videoPlayer").video("getPlayback");