Source: lib/config/cross_boundary_strategy.js

  1. /*! @license
  2. * Shaka Player
  3. * Copyright 2016 Google LLC
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. goog.provide('shaka.config.CrossBoundaryStrategy');
  7. /**
  8. * @enum {string}
  9. * @export
  10. */
  11. shaka.config.CrossBoundaryStrategy = {
  12. /**
  13. * Never reset MediaSource when crossing boundary.
  14. */
  15. 'KEEP': 'keep',
  16. /**
  17. * Always reset MediaSource when crossing boundary.
  18. */
  19. 'RESET': 'reset',
  20. /**
  21. * Reset MediaSource once, when transitioning from a plain
  22. * boundary to an encrypted boundary.
  23. */
  24. 'RESET_TO_ENCRYPTED': 'reset_to_encrypted',
  25. /**
  26. * Reset MediaSource, when transitioning from a plain
  27. * boundary to an encrypted boundary or from an encrypted
  28. * boundary to a plain boundary.
  29. */
  30. 'RESET_ON_ENCRYPTION_CHANGE': 'RESET_ON_ENCRYPTION_CHANGE',
  31. };