mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-24 17:35:10 +03:00
f539147d48
This fixes all the license headers in the main library, which corrects the appearance of the main license in the compiled output. It seems that the `!` in the header forces the compiler to keep it in the output. I believe older compiler releases did this purely based on `@license`. Issue #2638 Change-Id: I7f0e918caad10c9af689c9d07672b7fe9be7b2f3
43 lines
810 B
JavaScript
43 lines
810 B
JavaScript
/*! @license
|
|
* Shaka Player
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
|
|
goog.provide('shaka.ui.BigPlayButton');
|
|
|
|
goog.require('shaka.ui.PlayButton');
|
|
|
|
|
|
/**
|
|
* @extends {shaka.ui.PlayButton}
|
|
* @final
|
|
* @export
|
|
*/
|
|
shaka.ui.BigPlayButton = class extends shaka.ui.PlayButton {
|
|
/**
|
|
* @param {!HTMLElement} parent
|
|
* @param {!shaka.ui.Controls} controls
|
|
*/
|
|
constructor(parent, controls) {
|
|
super(parent, controls);
|
|
|
|
this.button.classList.add('shaka-play-button');
|
|
this.button.classList.add('shaka-no-propagation');
|
|
|
|
this.updateIcon();
|
|
this.updateAriaLabel();
|
|
}
|
|
|
|
|
|
/** @override */
|
|
updateIcon() {
|
|
if (this.isPaused()) {
|
|
this.button.setAttribute('icon', 'play');
|
|
} else {
|
|
this.button.setAttribute('icon', 'pause');
|
|
}
|
|
}
|
|
};
|