Source: lib/config/codec_switching_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.CodecSwitchingStrategy');
  7. /**
  8. * @enum {string}
  9. * @export
  10. */
  11. shaka.config.CodecSwitchingStrategy = {
  12. /**
  13. * Allow codec switching which will always involve reloading
  14. * the <code<MediaSource</code>.
  15. */
  16. 'RELOAD': 'reload',
  17. /**
  18. * Allow codec switching; determine if <code>SourceBuffer.changeType</code>
  19. * is available and attempt to use this first, but fall back to reloading
  20. * <code>MediaSource</code> if not available.
  21. * <br>
  22. * Note: Some devices that support <code>SourceBuffer.changeType</code> can
  23. * become stuck in a pause state.
  24. */
  25. 'SMOOTH': 'smooth',
  26. };