diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-15 10:46:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-15 10:55:33 +0200 |
commit | 864e782bc2306f7154a185361ebf94e6e86472e8 (patch) | |
tree | 008049ed5043759a0702938b2ce7314087e7a316 /client/src/assets/player/peertube-videojs-plugin.ts | |
parent | 37ddeba57f4c2aa85475fd3ef4498bb2802e1c7c (diff) | |
download | PeerTube-864e782bc2306f7154a185361ebf94e6e86472e8.tar.gz PeerTube-864e782bc2306f7154a185361ebf94e6e86472e8.tar.zst PeerTube-864e782bc2306f7154a185361ebf94e6e86472e8.zip |
Improve big play button animation
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 | } |