feat: introduce Xtream Codes API service for IPTV content access and streaming.

This commit is contained in:
Michael committed 2025-12-14 21:48:37 +01:00
1 parent 66a020416e
commit b0de7bce86
4 files changed
+39 -29

No files matched your search

@@ -60,14 +60,14 @@ class XtreamService {
/// Generate stream URL for live TV
///
/// Returns the proxy URL for direct MPEG-TS streaming.
/// Player will use mpegts.js for playback (no server-side transcoding).
/// Player uses mpegts.js for playback.
String getLiveStreamUrl(String streamId) {
if (_currentPlaylist == null) throw Exception('No playlist configured');
// Direct .ts URL for MPEG-TS streaming
final iptvUrl = '${_currentPlaylist!.dns}/live/${_currentPlaylist!.username}/${_currentPlaylist!.password}/$streamId.ts';
// Use proxy for direct streaming (no FFmpeg transcoding)
// Use proxy for direct streaming
return _wrapWithProxy(iptvUrl);
}