aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts8
1 files changed, 6 insertions, 2 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 b147b75b0..d8ba4df89 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -561,8 +561,12 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
561 private flushPlayer () { 561 private flushPlayer () {
562 // Remove player if it exists 562 // Remove player if it exists
563 if (this.player) { 563 if (this.player) {
564 this.player.dispose() 564 try {
565 this.player = undefined 565 this.player.dispose()
566 this.player = undefined
567 } catch (err) {
568 console.error('Cannot dispose player.', err)
569 }
566 } 570 }
567 } 571 }
568} 572}