1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-14 11:23:30 +02:00

Created generic spacer component meant to make it easier to create

control bar layouts
This commit is contained in:
Matthew McClure 2015-01-30 19:06:36 +01:00
parent e1e69941a1
commit 493f4d5df4
2 changed files with 21 additions and 0 deletions

View File

@ -44,6 +44,7 @@ ControlBar.prototype.options_ = {
'remainingTimeDisplay': {},
'liveDisplay': {},
'progressControl': {},
// 'separator': {},
'fullscreenToggle': {},
'volumeControl': {},
'muteToggle': {},

View File

@ -0,0 +1,20 @@
/**
* Just an empty separator element that can be used as an append point for plugins, etc.
* Also can be used to create space between elements when necessary.
*
* @param {vjs.Player|Object} player
* @param {Object=} options
* @constructor
*/
vjs.Separator = vjs.Component.extend({
/** @constructor */
init: function(player, options){
vjs.Component.call(this, player, options);
}
});
vjs.Separator.prototype.createEl = function(){
return vjs.Component.prototype.createEl.call(this, 'div', {
className: 'vjs-separator-control'
});
};