mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +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
@@ -541,6 +541,15 @@
|
||||
// Determine stream type and try appropriate player
|
||||
const lowerUrl = streamUrl.toLowerCase();
|
||||
const ext = urlParams.get('ext') ? urlParams.get('ext').toLowerCase() : '';
|
||||
const streamTypeParam = urlParams.get('type');
|
||||
|
||||
// VOD via proxy (/api/xtream/) - use direct playback
|
||||
if (streamUrl.includes('/api/xtream/') && streamTypeParam === 'vod') {
|
||||
log('VOD via proxy - using direct playback');
|
||||
showLoading('Loading video...');
|
||||
await playDirect(streamUrl);
|
||||
return;
|
||||
}
|
||||
|
||||
// HLS streams first
|
||||
if (lowerUrl.includes('.m3u8') || lowerUrl.includes('/hls/')) {
|
||||
|
||||
Reference in new issue
Block a user