Skip to content

Commit

Permalink
fix: Prevent infinite buffering at the start of looped video on edge (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored and misteroneill committed Mar 1, 2019
1 parent 957ecfd commit b6d1b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/videojs-http-streaming.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ class HlsHandler extends Component {

// Handle seeking when looping - middleware doesn't handle this seek event from the tech
this.on(this.tech_, 'seeking', function() {
if (this.tech_.seeking() && this.tech_.currentTime() === 0 && this.tech_.player_.loop()) {
if (this.tech_.currentTime() === 0 && this.tech_.player_.loop()) {
this.setCurrentTime(0);
}
});
Expand Down

0 comments on commit b6d1b97

Please sign in to comment.