oxspeed/js/ui/videoPlayer.js
2013-03-05 17:20:51 +05:30

24 lines
738 B
JavaScript

pandora.ui.videoPlayer = function(options) {
// var url = options.url;
var timeline = options.timeline || "foo.png"; //FIXME
var that = pandora.$ui.videoPlayer = Ox.VideoPlayer({
video: options.url,
controlsTop: ['fullscreen'],
controlsBottom: ['play', 'volume', 'scale', 'timeline', 'position'],
height: 300,
width: 400,
showControlsOnLoad: true,
duration: 35,
timeline: options.timeline || 'foo.png',
title: 'Test Video',
enableTimeline: true,
enableKeyboard: true,
enableMouse: true,
externalControls: true
// enableTimeline: true
});
//that.videoName = options.name;
return that;
};