Source: lib/config/auto_show_text.js

  1. /*! @license
  2. * Shaka Player
  3. * Copyright 2016 Google LLC
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. goog.provide('shaka.config.AutoShowText');
  7. /**
  8. * @enum {number}
  9. * @export
  10. */
  11. shaka.config.AutoShowText = {
  12. /** Never show text automatically on startup. */
  13. 'NEVER': 0,
  14. /** Always show text automatically on startup. */
  15. 'ALWAYS': 1,
  16. /**
  17. * Show text automatically on startup if it matches the preferred text
  18. * language.
  19. */
  20. 'IF_PREFERRED_TEXT_LANGUAGE': 2,
  21. /**
  22. * Show text automatically on startup if we think that subtitles may be
  23. * needed. This is specifically if the selected text matches the preferred
  24. * text language AND is different from the initial audio language. (Example:
  25. * You prefer English, but the audio is only available in French, so English
  26. * subtitles should be enabled by default.)
  27. * <br>
  28. * This is the default setting.
  29. */
  30. 'IF_SUBTITLES_MAY_BE_NEEDED': 3,
  31. };