diff options
Diffstat (limited to 'client/src/assets/player/peertube-videojs-plugin.ts')
-rw-r--r-- | client/src/assets/player/peertube-videojs-plugin.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index ddb73d074..83df24af6 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts | |||
@@ -322,11 +322,10 @@ class PeerTubePlugin extends Plugin { | |||
322 | // Proxy first play | 322 | // Proxy first play |
323 | const oldPlay = this.player.play.bind(this.player) | 323 | const oldPlay = this.player.play.bind(this.player) |
324 | this.player.play = () => { | 324 | this.player.play = () => { |
325 | this.updateVideoFile(undefined, 0, () => { | 325 | this.player.addClass('vjs-has-big-play-button-clicked') |
326 | this.seek(this.startTime) | ||
327 | oldPlay() | ||
328 | }) | ||
329 | this.player.play = oldPlay | 326 | this.player.play = oldPlay |
327 | |||
328 | this.updateVideoFile(undefined, 0, () => this.seek(this.startTime)) | ||
330 | } | 329 | } |
331 | } | 330 | } |
332 | } | 331 | } |