diff options
Diffstat (limited to 'client/src/app/+videos/+video-watch')
-rw-r--r-- | client/src/app/+videos/+video-watch/shared/action-buttons/action-buttons.component.ts | 3 | ||||
-rw-r--r-- | client/src/app/+videos/+video-watch/video-watch.component.ts | 13 |
2 files changed, 6 insertions, 10 deletions
diff --git a/client/src/app/+videos/+video-watch/shared/action-buttons/action-buttons.component.ts b/client/src/app/+videos/+video-watch/shared/action-buttons/action-buttons.component.ts index af26ea04d..51718827d 100644 --- a/client/src/app/+videos/+video-watch/shared/action-buttons/action-buttons.component.ts +++ b/client/src/app/+videos/+video-watch/shared/action-buttons/action-buttons.component.ts | |||
@@ -41,7 +41,8 @@ export class ActionButtonsComponent implements OnInit, OnChanges { | |||
41 | report: true, | 41 | report: true, |
42 | duplicate: true, | 42 | duplicate: true, |
43 | mute: true, | 43 | mute: true, |
44 | liveInfo: true | 44 | liveInfo: true, |
45 | stats: true | ||
45 | } | 46 | } |
46 | 47 | ||
47 | userRating: UserVideoRateType | 48 | userRating: UserVideoRateType |
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 f13c885f2..61b440859 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts | |||
@@ -553,9 +553,9 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
553 | videoCaptions: VideoCaption[] | 553 | videoCaptions: VideoCaption[] |
554 | urlOptions: CustomizationOptions & { playerMode: PlayerMode } | 554 | urlOptions: CustomizationOptions & { playerMode: PlayerMode } |
555 | loggedInOrAnonymousUser: User | 555 | loggedInOrAnonymousUser: User |
556 | user?: AuthUser | 556 | user?: AuthUser // Keep for plugins |
557 | }) { | 557 | }) { |
558 | const { video, liveVideo, videoCaptions, urlOptions, loggedInOrAnonymousUser, user } = params | 558 | const { video, liveVideo, videoCaptions, urlOptions, loggedInOrAnonymousUser } = params |
559 | 559 | ||
560 | const getStartTime = () => { | 560 | const getStartTime = () => { |
561 | const byUrl = urlOptions.startTime !== undefined | 561 | const byUrl = urlOptions.startTime !== undefined |
@@ -615,6 +615,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
615 | videoViewUrl: video.privacy.id !== VideoPrivacy.PRIVATE | 615 | videoViewUrl: video.privacy.id !== VideoPrivacy.PRIVATE |
616 | ? this.videoService.getVideoViewUrl(video.uuid) | 616 | ? this.videoService.getVideoViewUrl(video.uuid) |
617 | : null, | 617 | : null, |
618 | authorizationHeader: this.authService.getRequestHeaderValue(), | ||
619 | |||
618 | embedUrl: video.embedUrl, | 620 | embedUrl: video.embedUrl, |
619 | embedTitle: video.name, | 621 | embedTitle: video.name, |
620 | 622 | ||
@@ -623,13 +625,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
623 | 625 | ||
624 | language: this.localeId, | 626 | language: this.localeId, |
625 | 627 | ||
626 | userWatching: user && user.videosHistoryEnabled === true | ||
627 | ? { | ||
628 | url: this.videoService.getUserWatchingVideoUrl(video.uuid), | ||
629 | authorizationHeader: this.authService.getRequestHeaderValue() | ||
630 | } | ||
631 | : undefined, | ||
632 | |||
633 | serverUrl: environment.apiUrl, | 628 | serverUrl: environment.apiUrl, |
634 | 629 | ||
635 | videoCaptions: playerCaptions, | 630 | videoCaptions: playerCaptions, |