refactor: set videojs based player as default

This commit is contained in:
4gray committed 2021-02-11 19:45:11 +01:00
1 parent 9733910644
commit 97a9f91c46
4 files changed
+27 -23

No files matched your search

+2 -2
View File
@@ -70,7 +70,7 @@ export class SettingsComponent implements OnInit, OnDestroy {
private storage: StorageMap
) {
this.settingsForm = this.formBuilder.group({
player: ['html5'], // default value
player: ['videojs'], // default value
epgUrl: '',
});
@@ -101,7 +101,7 @@ export class SettingsComponent implements OnInit, OnDestroy {
this.storage.get('settings').subscribe((settings: Settings) => {
if (settings) {
this.settingsForm.setValue({
player: settings.player ? settings.player : 'html5',
player: settings.player ? settings.player : 'videojs',
epgUrl: settings.epgUrl ? settings.epgUrl : '',
});
}