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',
})
this.initHotkeys()
+
+ this.theaterEnabled = getStoredTheater()
}
ngOnDestroy () {
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))