call fillBuffer immediately, if a user tries playing
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -129,6 +129,7 @@ videojs.Hls.prototype.handleSourceOpen = function() { | ... | @@ -129,6 +129,7 @@ videojs.Hls.prototype.handleSourceOpen = function() { |
129 | this.fillBuffer(); | 129 | this.fillBuffer(); |
130 | } | 130 | } |
131 | 131 | ||
132 | player.one('play', videojs.bind(this, this.fillBuffer)); | ||
132 | player.on('timeupdate', videojs.bind(this, this.fillBuffer)); | 133 | player.on('timeupdate', videojs.bind(this, this.fillBuffer)); |
133 | player.on('timeupdate', videojs.bind(this, this.drainBuffer)); | 134 | player.on('timeupdate', videojs.bind(this, this.drainBuffer)); |
134 | player.on('waiting', videojs.bind(this, this.drainBuffer)); | 135 | player.on('waiting', videojs.bind(this, this.drainBuffer)); | ... | ... |
-
Please register or sign in to post a comment