feat: Implement core backend server with API, Xtream proxy, and streaming capabilities, and introduce IPTV player screen.

This commit is contained in:
Michael committed 2025-12-06 17:48:50 +01:00
1 parent 89fd3ab56d
commit c90ea530ea
2 files changed
+6 -7

No files matched your search

+3 -4
View File
@@ -433,9 +433,8 @@ Handler _createStreamHandler() {
'-i', iptvUrl,
// Output format: fragmented MP4 (fMP4) for streaming
'-f', 'mp4',
'-movflags', 'frag_keyframe+empty_moov+default_base_moof',
// Output format: MPEG-TS for streaming (compatible with mpegts.js)
'-f', 'mpegts',
// Video: Copy is BEST for performance (0% CPU)
// Browsers support H.264 well.
@@ -495,7 +494,7 @@ Handler _createStreamHandler() {
return Response.ok(
controller.stream,
headers: {
'Content-Type': 'video/mp4',
'Content-Type': 'video/MP2T',
'Access-Control-Allow-Origin': '*',
'Cache-Control': 'no-cache, no-store',
'Connection': 'keep-alive',