c8629df3 by Gary Katsevman

call fillBuffer immediately, if a user tries playing

1 parent 6dabe4c1
...@@ -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));
......