diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-17 14:14:28 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-17 14:14:28 +0100 |
commit | 18429d011e88217e371cda4600f6e3e65ddb9eaa (patch) | |
tree | 58103e153635fd6cee6381efc31042d46f863b37 /client | |
parent | 91f884d13970dfd73222025c171a6b5c4f322837 (diff) | |
download | PeerTube-18429d011e88217e371cda4600f6e3e65ddb9eaa.tar.gz PeerTube-18429d011e88217e371cda4600f6e3e65ddb9eaa.tar.zst PeerTube-18429d011e88217e371cda4600f6e3e65ddb9eaa.zip |
Don't update timestamps for a live
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/+videos/+video-watch/video-watch.component.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts index 543cfe3f7..c757a5e93 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts | |||
@@ -358,7 +358,9 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
358 | } | 358 | } |
359 | 359 | ||
360 | handleTimestampClicked (timestamp: number) { | 360 | handleTimestampClicked (timestamp: number) { |
361 | if (this.player) this.player.currentTime(timestamp) | 361 | if (!this.player || this.video.isLive) return |
362 | |||
363 | this.player.currentTime(timestamp) | ||
362 | scrollToTop() | 364 | scrollToTop() |
363 | } | 365 | } |
364 | 366 | ||