mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-17 12:19:16 +02:00
feat: implement Xtream Codes API service for managing IPTV connections, streams, and channel data.
This commit is contained in:
1 parent
4825745be7
commit
0644f376db
3 files changed
+48
-12
No files matched your search
@@ -511,6 +511,20 @@
|
||||
|
||||
log('Stream URL: ' + streamUrl.substring(0, 80) + '...');
|
||||
|
||||
// SPECIAL: /api/stream/ endpoint outputs MPEG-TS, use mpegts.js directly
|
||||
if (streamUrl.includes('/api/stream/')) {
|
||||
log('Detected /api/stream/ endpoint - using MPEG-TS player for transcoded stream');
|
||||
showLoading('Initializing stream (transcoding audio)...');
|
||||
|
||||
if (mpegts.isSupported()) {
|
||||
await playWithMpegTS(streamUrl);
|
||||
return;
|
||||
} else {
|
||||
showError('MPEG-TS playback not supported on this device');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Determine stream type and try appropriate player
|
||||
const lowerUrl = streamUrl.toLowerCase();
|
||||
const ext = urlParams.get('ext') ? urlParams.get('ext').toLowerCase() : '';
|
||||
|
||||
Reference in new issue
Block a user