define('application/views/player/vod', [
'application/views/player/base',
'application/widgets/player/zappbanners/vod'
], function (
BaseView,
ZappBanner
) {
'use strict';
var CONTROLS = BaseView.CONTROLS,
VodView;
VodView = BaseView.extend({
init: function init (viewParams) {
var controls = [
CONTROLS.INFO,
CONTROLS.RESTART,
CONTROLS.REWIND,
CONTROLS.PLAYPAUSE,
CONTROLS.FORWARD,
CONTROLS.NEXT
];
init.base.call(this, controls, viewParams);
},
_buildZappBanner: function _buildZappBanner () {
_buildZappBanner.base.call(this, new ZappBanner());
},
/**
* Sets the progressbar current position.
*
* @param {Object} progressData - The progress data needed to update progressbar.
*/
setProgress: function setProgress (progressData) {
setProgress.base.call(this, progressData);
}
});
VodView.CONTROLS = CONTROLS;
return VodView;
});