mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-14 21:26:15 -08:00
fix(settings): mpv player is only available in electron app
This commit is contained in:
1 parent
277b627f7e
commit
18b9b7c746
1 file changed
+11
-7
@@ -37,6 +37,9 @@ export class SettingsComponent implements OnInit {
|
||||
/** List with available languages as enum */
|
||||
languageEnum = Language;
|
||||
|
||||
/** Flag that indicates whether the app runs in electron environment */
|
||||
isElectron = this.electronService.isElectron;
|
||||
|
||||
/** Player options */
|
||||
players = [
|
||||
{
|
||||
@@ -47,10 +50,14 @@ export class SettingsComponent implements OnInit {
|
||||
id: VideoPlayer.VideoJs,
|
||||
label: 'VideoJs Player',
|
||||
},
|
||||
{
|
||||
id: VideoPlayer.MPV,
|
||||
label: 'MPV Player',
|
||||
},
|
||||
...(this.isElectron
|
||||
? [
|
||||
{
|
||||
id: VideoPlayer.MPV,
|
||||
label: 'MPV Player',
|
||||
},
|
||||
]
|
||||
: []),
|
||||
];
|
||||
|
||||
/** Current version of the app */
|
||||
@@ -62,9 +69,6 @@ export class SettingsComponent implements OnInit {
|
||||
/** EPG availability flag */
|
||||
epgAvailable$ = this.store.select(selectIsEpgAvailable);
|
||||
|
||||
/** Flag that indicates whether the app runs in electron environment */
|
||||
isElectron = this.electronService.isElectron;
|
||||
|
||||
/** All available visual themes */
|
||||
themeEnum = Theme;
|
||||
|
||||
|
||||
Reference in new issue
Block a user