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

+9
View File
@@ -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/')) {