mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
0078137d1b
Closes: https://github.com/shaka-project/shaka-player/issues/1528 Closes: https://github.com/shaka-project/shaka-player/issues/1567 Closes: https://github.com/shaka-project/shaka-player/issues/4379 Closes: https://github.com/shaka-project/shaka-player/issues/5306 --------- Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
25 lines
651 B
JavaScript
25 lines
651 B
JavaScript
/*! @license
|
|
* Shaka Player
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
goog.provide('shaka.config.CodecSwitchingStrategy');
|
|
|
|
/**
|
|
* @enum {string}
|
|
* @export
|
|
*/
|
|
shaka.config.CodecSwitchingStrategy = {
|
|
// Allow codec switching which will always involve reloading the
|
|
// `MediaSource`.
|
|
RELOAD: 'reload',
|
|
// Allow codec switching; determine if `SourceBuffer.changeType` is available
|
|
// and attempt to use this first, but fall back to reloading `MediaSource` if
|
|
// not available.
|
|
//
|
|
// Note: Some devices that support `SourceBuffer.changeType` can become stuck
|
|
// in a pause state.
|
|
SMOOTH: 'smooth',
|
|
};
|