Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix time reset to zero after seek

Chocobozzz0807c884907a
diff --git a/client/src/standalone/player/src/peertube-player.ts b/client/src/standalone/player/src/peertube-player.ts
index 7fdbc7803a..c34610434d 100644
--- a/client/src/standalone/player/src/peertube-player.ts
+++ b/client/src/standalone/player/src/peertube-player.ts
@@ -71,6 +71,10 @@ if (PlayProgressBar.prototype.options_.children.includes('timeTooltip') !== true
PlayProgressBar.prototype.options_.children.push('timeTooltip')
}
+// FIXME: https://github.com/videojs/video.js/pull/8988#issuecomment-3402464579
+const seekBar = videojs.getComponent('SeekBar') as any
+seekBar.prototype.pendingSeekTime = seekBar.prototype.getCurrentTime_
+
export { videojs }
export class PeerTubePlayer {