mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-12 01:36:20 +02:00
feat: Implement core backend server with API, Xtream proxy, and streaming capabilities, and introduce IPTV player screen.
This commit is contained in:
1 parent
89fd3ab56d
commit
c90ea530ea
2 files changed
+6
-7
No files matched your search
+3
-4
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user