mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-15 16:06:41 +03:00
918c30b25a
Closes https://github.com/shaka-project/shaka-player/issues/3357 Closes https://github.com/shaka-project/shaka-player/issues/3303 Thanks to @surajkumar-sk, his https://github.com/shaka-project/shaka-player/pull/3373 has been the inspiration for this.
33 lines
737 B
JavaScript
33 lines
737 B
JavaScript
/*! @license
|
|
* Shaka Player
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
goog.provide('shaka.ui.HiddenRewindButton');
|
|
|
|
goog.require('shaka.ui.Enums');
|
|
goog.require('shaka.ui.HiddenSeekButton');
|
|
|
|
goog.requireType('shaka.ui.Controls');
|
|
|
|
/**
|
|
* @extends {shaka.ui.HiddenSeekButton}
|
|
* @final
|
|
* @export
|
|
*/
|
|
shaka.ui.HiddenRewindButton = class extends shaka.ui.HiddenSeekButton {
|
|
/**
|
|
* @param {!HTMLElement} parent
|
|
* @param {!shaka.ui.Controls} controls
|
|
*/
|
|
constructor(parent, controls) {
|
|
super(parent, controls);
|
|
|
|
this.seekContainer.classList.add('shaka-rewind-container');
|
|
this.seekIcon.textContent =
|
|
shaka.ui.Enums.MaterialDesignIcons.REWIND;
|
|
this.isRewind = true;
|
|
}
|
|
};
|