Sintel movie | © copyright Blender Foundation | durian.blender.org
<video id="video" src="myvideo.ogv"></video>
<a href="#" id='playpause'>play / pause</a>
new MooPlay.Control.PlayPause( $('video'), $('playpause'), {
paused_state_class: 'paused',
over_state_class: 'over',
click_state_class: 'clicked'
});
<video id="video" src="myvideo.ogv"></video>
<a id="fastrewindbutton" href="#">fast rewind</a>
<a id="fastforwardbutton" href="#">fast forward</a>
new MooPlay.Control.FastMove( $('video'), $('fastforwardbutton'), {speed_factor: 6});
new MooPlay.Control.FastMove($('video'), $('fastrewindbutton'), {speed_factor: -4});
<span id="current_time_container"></span>
<span id="remaining_time_container"></span>
new MooPlay.Control.TimeDisplay($('video'), $('current_time_container'), {pattern: '{h}:{m}:{s}', current: true});
new MooPlay.Control.TimeDisplay($('video'), $('remaining_time_container'), {pattern: '{h}:{m}:{s}', current: false});
<video id="video" src="myvideo.ogv"></video>
<div id="progress_container" style="width:400px;height:5px;background:#a0a0a0;">
var progressbar = new ProgressBar({
container: $('progress_container'),
startPercentage: 0,
step: 0,
});
new MooPlay.Control.LoadProgress($('video'), progressbar);
<video id="video" src="myvideo.ogv"></video>
<div id="slider" style="width:400px;height:5px;background:#a0a0a0;">
<div id="knob" style="width:5px;height:5px;background:#ffff80;"></div>
</div>
var slider = new Slider($('slider'), $('knob'));
new MooPlay.Control.PlayProgress( $('video'), slider);
<video id="video" src="myvideo.ogv"></video>
<a id="mute" href="#">mute</a>
new MooPlay.Control.Mute($('video'), $('mute'));
<video id="video" src="myvideo.ogv"></video>
<div id="slider_volume" style="width:100px;height:5px;background:#a0a0a0;">
<div id="knob_volume" style="width:5px;height:5px;background:#ff4040;"></div>
</div>
var slider_volume = new Slider($('slider_volume'), $('knob_volume'), {steps: 100});
new MooPlay.Control.Volume($('video'), slider_volume , {auto_unmute: true});
<a id="fullscreen" href="#">
fullscreen
</a>
new MooPlay.Control.FullScreen($('container'), $('fullscreen'));
<video id="video" src="myvideo.ogv"></video>
<div id="subtitles_container"></div>
var subs_player = new MooPlay.Subtitle.Player($('video'), $('subtitles_container'));
var loader = new MooPlay.Subtitle.Loader( 'mysubtitles.srt', {
onComplete: function(subs_hash) {
subs_player.loadSubtitles(subs_hash);
}
});