move comment
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -113,9 +113,6 @@ videojs.Hls.prototype.handleSourceOpen = function() { | ... | @@ -113,9 +113,6 @@ videojs.Hls.prototype.handleSourceOpen = function() { |
113 | 113 | ||
114 | oldMediaPlaylist = this.playlists.media(); | 114 | oldMediaPlaylist = this.playlists.media(); |
115 | 115 | ||
116 | // periodically check if new data needs to be downloaded or | ||
117 | // buffered data should be appended to the source buffer | ||
118 | |||
119 | if (this.bandwidth !== this.playlists.bandwidth || | 116 | if (this.bandwidth !== this.playlists.bandwidth || |
120 | (this.bandwidth && this.bandwidth < this.playlists.bandwidth)) { | 117 | (this.bandwidth && this.bandwidth < this.playlists.bandwidth)) { |
121 | this.bandwidth = this.playlists.bandwidth; | 118 | this.bandwidth = this.playlists.bandwidth; |
... | @@ -136,6 +133,9 @@ videojs.Hls.prototype.handleSourceOpen = function() { | ... | @@ -136,6 +133,9 @@ videojs.Hls.prototype.handleSourceOpen = function() { |
136 | } | 133 | } |
137 | 134 | ||
138 | player.one('play', videojs.bind(this, this.fillBuffer)); | 135 | player.one('play', videojs.bind(this, this.fillBuffer)); |
136 | |||
137 | // periodically check if new data needs to be downloaded or | ||
138 | // buffered data should be appended to the source buffer | ||
139 | player.on('timeupdate', videojs.bind(this, this.fillBuffer)); | 139 | player.on('timeupdate', videojs.bind(this, this.fillBuffer)); |
140 | player.on('timeupdate', videojs.bind(this, this.drainBuffer)); | 140 | player.on('timeupdate', videojs.bind(this, this.drainBuffer)); |
141 | player.on('waiting', videojs.bind(this, this.drainBuffer)); | 141 | player.on('waiting', videojs.bind(this, this.drainBuffer)); | ... | ... |
-
Please register or sign in to post a comment