mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
feat: Add Xtream Codes API service for managing playlists, streams, and channels, including caching and proxy handling.
This commit is contained in:
1 parent
85deb540d2
commit
0c087e0b34
4 files changed
+275
-10
No files matched your search
@@ -72,7 +72,7 @@ class XtreamService {
|
||||
String getVodStreamUrl(String streamId, String containerExtension) {
|
||||
if (_currentPlaylist == null) throw Exception('No playlist configured');
|
||||
|
||||
// Use FFmpeg transcoding to ensure audio compatibility (converts AC3/DTS to AAC)
|
||||
// Use FFmpeg HLS transcoding for guaranteed audio compatibility + seeking
|
||||
final url = '${_currentPlaylist!.dns}/movie/${_currentPlaylist!.username}/${_currentPlaylist!.password}/$streamId.$containerExtension';
|
||||
|
||||
final baseUrl = html.window.location.origin;
|
||||
@@ -84,7 +84,7 @@ class XtreamService {
|
||||
String getSeriesStreamUrl(String streamId, String containerExtension) {
|
||||
if (_currentPlaylist == null) throw Exception('No playlist configured');
|
||||
|
||||
// Use FFmpeg transcoding to ensure audio compatibility
|
||||
// Use FFmpeg HLS transcoding for guaranteed audio compatibility + seeking
|
||||
final url = '${_currentPlaylist!.dns}/series/${_currentPlaylist!.username}/${_currentPlaylist!.password}/$streamId.$containerExtension';
|
||||
|
||||
final baseUrl = html.window.location.origin;
|
||||
|
||||
Reference in new issue
Block a user