mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-12 01:36:20 +02:00
feat: introduce Xtream Codes API service for IPTV content access and streaming.
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user