3 exports.__esModule = true;
5 var _component = require('../component.js');
7 var _component2 = _interopRequireDefault(_component);
9 require('./play-toggle.js');
11 require('./time-controls/current-time-display.js');
13 require('./time-controls/duration-display.js');
15 require('./time-controls/time-divider.js');
17 require('./time-controls/remaining-time-display.js');
19 require('./live-display.js');
21 require('./progress-control/progress-control.js');
23 require('./fullscreen-toggle.js');
25 require('./volume-control/volume-control.js');
27 require('./volume-menu-button.js');
29 require('./mute-toggle.js');
31 require('./text-track-controls/chapters-button.js');
33 require('./text-track-controls/descriptions-button.js');
35 require('./text-track-controls/subtitles-button.js');
37 require('./text-track-controls/captions-button.js');
39 require('./audio-track-controls/audio-track-button.js');
41 require('./playback-rate-menu/playback-rate-menu-button.js');
43 require('./spacer-controls/custom-control-spacer.js');
45 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
47 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
49 function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
51 function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
52 * @file control-bar.js
60 * Container of main controls.
64 var ControlBar = function (_Component) {
65 _inherits(ControlBar, _Component);
67 function ControlBar() {
68 _classCallCheck(this, ControlBar);
70 return _possibleConstructorReturn(this, _Component.apply(this, arguments));
74 * Create the `Component`'s DOM element
77 * The element that was created.
79 ControlBar.prototype.createEl = function createEl() {
80 return _Component.prototype.createEl.call(this, 'div', {
81 className: 'vjs-control-bar',
84 // The control bar is a group, so it can contain menuitems
90 }(_component2['default']);
93 * Default options for `ControlBar`
100 ControlBar.prototype.options_ = {
101 children: ['playToggle', 'volumeMenuButton', 'currentTimeDisplay', 'timeDivider', 'durationDisplay', 'progressControl', 'liveDisplay', 'remainingTimeDisplay', 'customControlSpacer', 'playbackRateMenuButton', 'chaptersButton', 'descriptionsButton', 'subtitlesButton', 'captionsButton', 'audioTrackButton', 'fullscreenToggle']
104 _component2['default'].registerComponent('ControlBar', ControlBar);
105 exports['default'] = ControlBar;