From 864e782bc2306f7154a185361ebf94e6e86472e8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 15 Apr 2018 10:46:26 +0200 Subject: Improve big play button animation --- client/src/assets/player/peertube-videojs-plugin.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'client/src/assets/player/peertube-videojs-plugin.ts') 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 { // Proxy first play const oldPlay = this.player.play.bind(this.player) this.player.play = () => { - this.updateVideoFile(undefined, 0, () => { - this.seek(this.startTime) - oldPlay() - }) + this.player.addClass('vjs-has-big-play-button-clicked') this.player.play = oldPlay + + this.updateVideoFile(undefined, 0, () => this.seek(this.startTime)) } } } -- cgit v1.2.3