diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-17 17:06:34 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-17 17:06:34 +0200 |
commit | 3b492bff49bbab71e826cc4fe93db8c6a74a3391 (patch) | |
tree | a3062ab728c2ec462e25a384009e05ef86245e38 /client/src/app/videos/+video-watch/video-watch.component.ts | |
parent | 330eaf12969ed0f15f93d5dd50599885f62ffbed (diff) | |
download | PeerTube-3b492bff49bbab71e826cc4fe93db8c6a74a3391.tar.gz PeerTube-3b492bff49bbab71e826cc4fe93db8c6a74a3391.tar.zst PeerTube-3b492bff49bbab71e826cc4fe93db8c6a74a3391.zip |
Fix regression in theater 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.ts | 5 |
1 files changed, 4 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 4f8549e8f..ff8baaeb3 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { catchError } from 'rxjs/operators' | 1 | import { catchError } from 'rxjs/operators' |
2 | import { Component, ElementRef, Inject, LOCALE_ID, NgZone, OnDestroy, OnInit, ViewChild } from '@angular/core' | 2 | import { ChangeDetectorRef, Component, ElementRef, Inject, LOCALE_ID, NgZone, OnDestroy, OnInit, ViewChild } from '@angular/core' |
3 | import { ActivatedRoute, Router } from '@angular/router' | 3 | import { ActivatedRoute, Router } from '@angular/router' |
4 | import { RedirectService } from '@app/core/routing/redirect.service' | 4 | import { RedirectService } from '@app/core/routing/redirect.service' |
5 | import { peertubeLocalStorage } from '@app/shared/misc/peertube-local-storage' | 5 | import { peertubeLocalStorage } from '@app/shared/misc/peertube-local-storage' |
@@ -65,6 +65,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
65 | 65 | ||
66 | constructor ( | 66 | constructor ( |
67 | private elementRef: ElementRef, | 67 | private elementRef: ElementRef, |
68 | private changeDetector: ChangeDetectorRef, | ||
68 | private route: ActivatedRoute, | 69 | private route: ActivatedRoute, |
69 | private router: Router, | 70 | private router: Router, |
70 | private videoService: VideoService, | 71 | private videoService: VideoService, |
@@ -317,6 +318,8 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
317 | if (errorMessage.indexOf('from xs param') !== -1) { | 318 | if (errorMessage.indexOf('from xs param') !== -1) { |
318 | this.flushPlayer() | 319 | this.flushPlayer() |
319 | this.remoteServerDown = true | 320 | this.remoteServerDown = true |
321 | this.changeDetector.detectChanges() | ||
322 | |||
320 | return | 323 | return |
321 | } | 324 | } |
322 | 325 | ||