Source: ui/hidden_rewind_button.js

  1. /*! @license
  2. * Shaka Player
  3. * Copyright 2016 Google LLC
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. goog.provide('shaka.ui.HiddenRewindButton');
  7. goog.require('shaka.ui.Enums');
  8. goog.require('shaka.ui.HiddenSeekButton');
  9. goog.requireType('shaka.ui.Controls');
  10. /**
  11. * @extends {shaka.ui.HiddenSeekButton}
  12. * @final
  13. * @export
  14. */
  15. shaka.ui.HiddenRewindButton = class extends shaka.ui.HiddenSeekButton {
  16. /**
  17. * @param {!HTMLElement} parent
  18. * @param {!shaka.ui.Controls} controls
  19. */
  20. constructor(parent, controls) {
  21. super(parent, controls);
  22. this.seekContainer.classList.add('shaka-rewind-container');
  23. this.seekIcon.textContent =
  24. shaka.ui.Enums.MaterialDesignIcons.REWIND;
  25. this.isRewind = true;
  26. }
  27. };