fix(xtream): set initial player in case settings are missing

this commit fixes #326
This commit is contained in:
4gray committed 2024-04-08 08:33:29 +02:00
1 parent b3f1094924
commit a944e5d9c5
1 file changed
+1 -1
@@ -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);