mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-15 21:56:18 -08:00
feat(xtream): add option to select stream format (TS or M3U8)
Add a new configuration option in the settings that allows choosing between TS and M3U8 stream formats.
This commit is contained in:
8 files changed
+49
-2
No files matched your search
@@ -49,6 +49,7 @@ import { HeaderComponent } from '../shared/components/header/header.component';
|
||||
import * as PlaylistActions from '../state/actions';
|
||||
import { selectIsEpgAvailable } from '../state/selectors';
|
||||
import { SettingsService } from './../services/settings.service';
|
||||
import { StreamFormat } from './stream-format.enum';
|
||||
import { Language } from './language.enum';
|
||||
import { VideoPlayer } from './settings.interface';
|
||||
import { Theme } from './theme.enum';
|
||||
@@ -77,6 +78,9 @@ export class SettingsComponent implements OnInit {
|
||||
/** List with available languages as enum */
|
||||
languageEnum = Language;
|
||||
|
||||
/** List with allowed formats as enum */
|
||||
streamFormatEnum = StreamFormat;
|
||||
|
||||
/** Flag that indicates whether the app runs in electron environment */
|
||||
isTauri = this.dataService.getAppEnvironment() === 'tauri';
|
||||
|
||||
@@ -130,6 +134,7 @@ export class SettingsComponent implements OnInit {
|
||||
settingsForm = this.formBuilder.group({
|
||||
player: [VideoPlayer.VideoJs],
|
||||
...(this.isTauri ? { epgUrl: new FormArray([]) } : {}),
|
||||
streamFormat: StreamFormat.TsStreamFormat,
|
||||
language: Language.ENGLISH,
|
||||
showCaptions: false,
|
||||
theme: Theme.LightTheme,
|
||||
|
||||
Reference in new issue
Block a user