fix: stabilize IPTV playback and implement request throttling

- Add playback lock to XtreamService to delay EPG during stream init
- Increase MPEG-TS stash buffer to 512KB for better stability
- Enable liveBufferLatencyChasing to prevent stream drift
- Tune HLS parameters for balanced speed and reliability
This commit is contained in:
Michael committed 2026-03-10 18:54:44 +01:00
1 parent 0ca6f96710
commit df4bcfd07f
5 files changed
+48 -22

No files matched your search

@@ -140,6 +140,12 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
streamUrl = service.getLiveStreamUrlTs(currentStreamId);
}
// STABILIZATION: Lock background requests during stream init
service.isPlaybackLoading = true;
Future.delayed(const Duration(seconds: 10), () {
service.isPlaybackLoading = false;
});
_currentStreamUrl = streamUrl;
final encodedUrl = Uri.encodeComponent(streamUrl);