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.ts4
1 files changed, 3 insertions, 1 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 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.
31import { Video } from '@app/shared/video/video.model' 31import { Video } from '@app/shared/video/video.model'
32import { isWebRTCDisabled, timeToInt } from '../../../assets/player/utils' 32import { isWebRTCDisabled, timeToInt } from '../../../assets/player/utils'
33import { VideoWatchPlaylistComponent } from '@app/videos/+video-watch/video-watch-playlist.component' 33import { VideoWatchPlaylistComponent } from '@app/videos/+video-watch/video-watch-playlist.component'
34import { getStoredTheater } from '../../../assets/player/peertube-player-local-storage'
34 35
35@Component({ 36@Component({
36 selector: 'my-video-watch', 37 selector: 'my-video-watch',
@@ -121,6 +122,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
121 }) 122 })
122 123
123 this.initHotkeys() 124 this.initHotkeys()
125
126 this.theaterEnabled = getStoredTheater()
124 } 127 }
125 128
126 ngOnDestroy () { 129 ngOnDestroy () {
@@ -445,7 +448,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
445 448
446 this.zone.runOutsideAngular(async () => { 449 this.zone.runOutsideAngular(async () => {
447 this.player = await PeertubePlayerManager.initialize(mode, options) 450 this.player = await PeertubePlayerManager.initialize(mode, options)
448 this.theaterEnabled = this.player.theaterEnabled
449 451
450 this.player.on('customError', ({ err }: { err: any }) => this.handleError(err)) 452 this.player.on('customError', ({ err }: { err: any }) => this.handleError(err))
451 453