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