|
|
@ -285,8 +285,8 @@ class HlsHandler extends Component { |
|
|
|
// If the bandwidth number is unchanged from the initial setting
|
|
|
|
// then this takes precedence over the enableLowInitialPlaylist option
|
|
|
|
this.options_.enableLowInitialPlaylist = |
|
|
|
(this.options_.enableLowInitialPlaylist && |
|
|
|
this.options_.bandwidth === INITIAL_BANDWIDTH) || false; |
|
|
|
this.options_.enableLowInitialPlaylist && |
|
|
|
this.options_.bandwidth === INITIAL_BANDWIDTH; |
|
|
|
|
|
|
|
// grab options passed to player.src
|
|
|
|
['withCredentials', 'bandwidth'].forEach((option) => { |
|
|
@ -331,9 +331,7 @@ class HlsHandler extends Component { |
|
|
|
this.selectPlaylist ? |
|
|
|
this.selectPlaylist.bind(this) : Hls.STANDARD_PLAYLIST_SELECTOR.bind(this); |
|
|
|
|
|
|
|
this.masterPlaylistController_.selectInitialPlaylist = |
|
|
|
this.selectInitialPlaylist ? |
|
|
|
this.selectInitialPlaylist.bind(this) : Hls.INITIAL_PLAYLIST_SELECTOR.bind(this); |
|
|
|
this.masterPlaylistController_.selectInitialPlaylist = Hls.INITIAL_PLAYLIST_SELECTOR.bind(this); |
|
|
|
|
|
|
|
// re-expose some internal objects for backwards compatibility with < v2
|
|
|
|
this.playlists = this.masterPlaylistController_.masterPlaylistLoader_; |
|
|
|