Use setBandwidth in loadedmetadata
Showing
1 changed file
with
1 additions
and
2 deletions
... | @@ -125,8 +125,7 @@ videojs.Hls.prototype.handleSourceOpen = function() { | ... | @@ -125,8 +125,7 @@ videojs.Hls.prototype.handleSourceOpen = function() { |
125 | }; | 125 | }; |
126 | 126 | ||
127 | oldMediaPlaylist = this.playlists.media(); | 127 | oldMediaPlaylist = this.playlists.media(); |
128 | this.bandwidth = this.playlists.bandwidth; | 128 | this.setBandwidth(this.playlists); |
129 | this.trigger('bandwidthupdate'); | ||
130 | 129 | ||
131 | selectedPlaylist = this.selectPlaylist(); | 130 | selectedPlaylist = this.selectPlaylist(); |
132 | oldBitrate = oldMediaPlaylist.attributes && | 131 | oldBitrate = oldMediaPlaylist.attributes && | ... | ... |
-
Please register or sign in to post a comment