mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
feat: Add Xtream Codes API service for managing playlists, streams, and channels, including caching and proxy handling.
This commit is contained in:
1 parent
0644f376db
commit
5b0ae63290
4 files changed
+275
-10
No files matched your search
+3
-2
@@ -18,6 +18,7 @@ import 'api/settings_handler.dart';
|
||||
import 'middleware/auth_middleware.dart';
|
||||
import 'middleware/security_middleware.dart';
|
||||
import 'services/cleanup_service.dart';
|
||||
import 'api/hls_handler.dart';
|
||||
|
||||
void main(List<String> args) async {
|
||||
// Parse command line arguments
|
||||
@@ -125,9 +126,9 @@ void main(List<String> args) async {
|
||||
// Main handler with API proxy and FFmpeg streaming
|
||||
final handler = Cascade()
|
||||
.add(_createApiHandler(apiRouter))
|
||||
.add(_createStreamHandler()) // FFmpeg streaming endpoint
|
||||
.add(createStreamInitHandler()) // FFmpeg HLS transcoding
|
||||
.add(createHlsFileHandler()) // Serve HLS files (.m3u8, .ts)
|
||||
.add(_createXtreamProxyHandler())
|
||||
// .add(_createHlsHandler()) // REMOVED: HLS obsolete with direct stream
|
||||
.add(staticHandler)
|
||||
.handler;
|
||||
|
||||
|
||||
Reference in new issue
Block a user