83237357 by Gary Katsevman

Use setBandwidth in loadedmetadata

1 parent 831c403d
...@@ -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 &&
......