aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-watch/video-watch.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+videos/+video-watch/video-watch.component.ts')
-rw-r--r--client/src/app/+videos/+video-watch/video-watch.component.ts13
1 files changed, 4 insertions, 9 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 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,