Files
shaka-player/ui/hidden_fast_forward_button.js
T
Phyo Wai Lin 7d61334759 feat(UI): Replace icon font with SVG icons (#8986)
* Update all UI components to use SVG icons instead of icon fonts
* Adjust some icon sizes to 32px

Replacing icon fonts with inline SVGs removes the loading delay caused
by font fetching. Icons now appear immediately with zero delay.

Close https://github.com/shaka-project/shaka-player/issues/2467
2025-08-19 12:40:53 +02:00

32 lines
746 B
JavaScript

/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
goog.provide('shaka.ui.HiddenFastForwardButton');
goog.require('shaka.ui.Enums');
goog.require('shaka.ui.HiddenSeekButton');
goog.requireType('shaka.ui.Controls');
/**
* @extends {shaka.ui.HiddenSeekButton}
* @final
* @export
*/
shaka.ui.HiddenFastForwardButton = class extends shaka.ui.HiddenSeekButton {
/**
* @param {!HTMLElement} parent
* @param {!shaka.ui.Controls} controls
*/
constructor(parent, controls) {
super(parent, controls);
this.seekContainer.classList.add('shaka-fast-forward-container');
this.seekIcon.use(shaka.ui.Enums.MaterialDesignSVGIcons.FAST_FORWARD);
this.isRewind = false;
}
};