X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-watch%2Fvideo-watch.component.ts;h=67c5254b3047394b6e177f1820821eee89f4c4cb;hb=43483d12963ed7a82adee2e35a7bcb7e55e54b3e;hp=7765c4660e5dc9d6141992a6bcba8b80c17f520c;hpb=07a982363fcc6f838dd3f5c2039a2affaea3b0b2;p=github%2FChocobozzz%2FPeerTube.git 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 7765c4660..67c5254b3 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts @@ -375,7 +375,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { this.remoteServerDown = false let startTime = urlOptions.startTime || (this.video.userHistory ? this.video.userHistory.currentTime : 0) - // Don't start the video if we are at the end + // If we are at the end of the video, reset the timer if (this.video.duration - startTime <= 1) startTime = 0 if (this.video.isVideoNSFWForUser(this.user, this.serverService.getConfig())) {