Skip to content

Commit

Permalink
fix(xtream): set initial player in case settings are missing
Browse files Browse the repository at this point in the history
this commit fixes #326
  • Loading branch information
4gray committed Apr 8, 2024
1 parent b3f1094 commit a944e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/xtream/xtream-main-container.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a944e5d

Please sign in to comment.