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 | 8 |
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 631504eab..55109dc32 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts | |||
@@ -545,8 +545,12 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
545 | private flushPlayer () { | 545 | private flushPlayer () { |
546 | // Remove player if it exists | 546 | // Remove player if it exists |
547 | if (this.player) { | 547 | if (this.player) { |
548 | this.player.dispose() | 548 | try { |
549 | this.player = undefined | 549 | this.player.dispose() |
550 | this.player = undefined | ||
551 | } catch (err) { | ||
552 | console.error('Cannot dispose player.', err) | ||
553 | } | ||
550 | } | 554 | } |
551 | } | 555 | } |
552 | 556 | ||