Skip to content

Commit

Permalink
fix: Do not minify CodecSwitchingStrategy enum keys (#7200)
Browse files Browse the repository at this point in the history
Enum keys has been minified in release build.
As comments were using wrong syntax, they weren't displayed in
documentation.
  • Loading branch information
tykus160 authored and avelad committed Aug 26, 2024
1 parent a730d06 commit 2bc3ef9
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions lib/config/codec_switching_strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ goog.provide('shaka.config.CodecSwitchingStrategy');
* @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',
/**
* Allow codec switching which will always involve reloading
* the <code<MediaSource</code>.
*/
'RELOAD': 'reload',
/**
* Allow codec switching; determine if <code>SourceBuffer.changeType</code>
* is available and attempt to use this first, but fall back to reloading
* <code>MediaSource</code> if not available.
* <br>
* Note: Some devices that support <code>SourceBuffer.changeType</code> can
* become stuck in a pause state.
*/
'SMOOTH': 'smooth',
};

0 comments on commit 2bc3ef9

Please sign in to comment.