diff options
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r-- | client/src/app/+videos/+video-watch/video-watch.component.ts | 6 |
1 files changed, 3 insertions, 3 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 5ca9d5fa9..fd61bcbf0 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts | |||
@@ -658,7 +658,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
658 | return this.peertubeSocket.getLiveVideosObservable() | 658 | return this.peertubeSocket.getLiveVideosObservable() |
659 | .subscribe(({ type, payload }) => { | 659 | .subscribe(({ type, payload }) => { |
660 | if (type === 'state-change') return this.handleLiveStateChange(payload.state) | 660 | if (type === 'state-change') return this.handleLiveStateChange(payload.state) |
661 | if (type === 'views-change') return this.handleLiveViewsChange(payload.views) | 661 | if (type === 'views-change') return this.handleLiveViewsChange(payload.viewers) |
662 | }) | 662 | }) |
663 | } | 663 | } |
664 | 664 | ||
@@ -677,7 +677,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
677 | this.loadVideo(videoUUID) | 677 | this.loadVideo(videoUUID) |
678 | } | 678 | } |
679 | 679 | ||
680 | private handleLiveViewsChange (newViews: number) { | 680 | private handleLiveViewsChange (newViewers: number) { |
681 | if (!this.video) { | 681 | if (!this.video) { |
682 | console.error('Cannot update video live views because video is no defined.') | 682 | console.error('Cannot update video live views because video is no defined.') |
683 | return | 683 | return |
@@ -685,7 +685,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
685 | 685 | ||
686 | console.log('Updating live views.') | 686 | console.log('Updating live views.') |
687 | 687 | ||
688 | this.video.views = newViews | 688 | this.video.viewers = newViewers |
689 | } | 689 | } |
690 | 690 | ||
691 | private initHotkeys () { | 691 | private initHotkeys () { |