From a944e5d9c57635368cec8843b71c10d452d7da81 Mon Sep 17 00:00:00 2001 From: 4gray Date: Mon, 8 Apr 2024 08:33:29 +0200 Subject: [PATCH] fix(xtream): set initial player in case settings are missing this commit fixes #326 --- src/app/xtream/xtream-main-container.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/xtream/xtream-main-container.component.ts b/src/app/xtream/xtream-main-container.component.ts index 96c225dcc..aeb2d6cc7 100644 --- a/src/app/xtream/xtream-main-container.component.ts +++ b/src/app/xtream/xtream-main-container.component.ts @@ -336,7 +336,7 @@ export class XtreamMainContainerComponent implements OnInit { } openPlayer(streamUrl: string, title: string) { - this.player = this.settings().player ?? VideoPlayer.VideoJs; + this.player = this.settings()?.player ?? VideoPlayer.VideoJs; if (this.player === VideoPlayer.MPV) { if (!this.hideExternalInfoDialog()) this.dialog.open(ExternalPlayerInfoDialogComponent);