3 exports.__esModule = true;
5 var _button = require('./button.js');
7 var _button2 = _interopRequireDefault(_button);
9 var _component = require('./component.js');
11 var _component2 = _interopRequireDefault(_component);
13 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
15 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17 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; }
19 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; } /**
20 * @file big-play-button.js
25 * The initial play button that shows before the video has played. The hiding of the
26 * `BigPlayButton` get done via CSS and `Player` states.
30 var BigPlayButton = function (_Button) {
31 _inherits(BigPlayButton, _Button);
33 function BigPlayButton() {
34 _classCallCheck(this, BigPlayButton);
36 return _possibleConstructorReturn(this, _Button.apply(this, arguments));
40 * Builds the default DOM `className`.
43 * The DOM `className` for this object. Always returns 'vjs-big-play-button'.
45 BigPlayButton.prototype.buildCSSClass = function buildCSSClass() {
46 return 'vjs-big-play-button';
50 * This gets called when a `BigPlayButton` "clicked". See {@link ClickableComponent}
51 * for more detailed information on what a click can be.
53 * @param {EventTarget~Event} event
54 * The `keydown`, `tap`, or `click` event that caused this function to be
62 BigPlayButton.prototype.handleClick = function handleClick(event) {
65 var cb = this.player_.getChild('controlBar');
66 var playToggle = cb && cb.getChild('playToggle');
73 this.setTimeout(function () {
79 }(_button2['default']);
82 * The text that should display over the `BigPlayButton`s controls. Added to for localization.
89 BigPlayButton.prototype.controlText_ = 'Play Video';
91 _component2['default'].registerComponent('BigPlayButton', BigPlayButton);
92 exports['default'] = BigPlayButton;