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:
Giuseppe Falsone committed 2025-03-16 18:28:31 +01:00
1 parent ebfaa18ab8
commit b335d17d1f
8 files changed
+49 -2

No files matched your search

+5
View File
@@ -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,