From 011e1e6b37e15a44624b2d0e50263e16382060d2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jun 2019 16:26:48 +0200 Subject: Speedup video watch layout build --- client/src/app/videos/+video-watch/video-watch.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client/src/app/videos/+video-watch/video-watch.component.ts') 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 cf9dc8f9c..29c472a42 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts @@ -31,6 +31,7 @@ import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist. import { Video } from '@app/shared/video/video.model' import { isWebRTCDisabled, timeToInt } from '../../../assets/player/utils' import { VideoWatchPlaylistComponent } from '@app/videos/+video-watch/video-watch-playlist.component' +import { getStoredTheater } from '../../../assets/player/peertube-player-local-storage' @Component({ selector: 'my-video-watch', @@ -121,6 +122,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy { }) this.initHotkeys() + + this.theaterEnabled = getStoredTheater() } ngOnDestroy () { @@ -445,7 +448,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy { this.zone.runOutsideAngular(async () => { this.player = await PeertubePlayerManager.initialize(mode, options) - this.theaterEnabled = this.player.theaterEnabled this.player.on('customError', ({ err }: { err: any }) => this.handleError(err)) -- cgit v1.2.3