we want to switch if bandwidth is undefined
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -114,7 +114,7 @@ videojs.Hls.prototype.handleSourceOpen = function() { | ... | @@ -114,7 +114,7 @@ videojs.Hls.prototype.handleSourceOpen = function() { |
114 | oldMediaPlaylist = this.playlists.media(); | 114 | oldMediaPlaylist = this.playlists.media(); |
115 | 115 | ||
116 | if (this.bandwidth !== this.playlists.bandwidth) { | 116 | if (this.bandwidth !== this.playlists.bandwidth) { |
117 | if (this.bandwidth !== undefined && this.bandwidth < this.playlists.bandwidth) { | 117 | if (this.bandwidth === undefined || this.bandwidth !== undefined && this.bandwidth < this.playlists.bandwidth) { |
118 | this.bandwidth = this.playlists.bandwidth; | 118 | this.bandwidth = this.playlists.bandwidth; |
119 | 119 | ||
120 | selectedPlaylist = this.selectPlaylist(); | 120 | selectedPlaylist = this.selectPlaylist(); | ... | ... |
-
Please register or sign in to post a comment