diff options
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 | ||