Skip to content

Commit

Permalink
fix: Fix video playback freezes caused by not using absolute current …
Browse files Browse the repository at this point in the history
…time (#401)
  • Loading branch information
brandonocasey authored and misteroneill committed Mar 1, 2019
1 parent 5d80fe7 commit 957ecfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware-set-current-time.js
Expand Up @@ -28,7 +28,7 @@ videojs.use('*', (player) => {
play() {
if (player.vhs &&
player.currentSource().src === player.vhs.source_.src) {
player.vhs.setCurrentTime(player.currentTime());
player.vhs.setCurrentTime(player.tech_.currentTime());
}
}
};
Expand Down

0 comments on commit 957ecfd

Please sign in to comment.