mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
feat: Implement API handlers for live and VOD streaming and create database module.
This commit is contained in:
1 parent
72e28a398a
commit
ce82b9e824
3 files changed
+47
-11
No files matched your search
+8
-2
@@ -172,8 +172,14 @@ void main(List<String> args) async {
|
||||
|
||||
// Create Streaming Router (Mount handlers on correct paths)
|
||||
final streamingRouter = Router()
|
||||
..mount('/api/live', createLiveStreamHandler(getPlaylist))
|
||||
..mount('/api/vod', createVodStreamHandler(getPlaylist));
|
||||
..mount(
|
||||
'/api/live',
|
||||
createLiveStreamHandler(getPlaylist,
|
||||
isGpuEnabled: db.isNvidiaGpuEnabled))
|
||||
..mount(
|
||||
'/api/vod',
|
||||
createVodStreamHandler(getPlaylist,
|
||||
isGpuEnabled: db.isNvidiaGpuEnabled));
|
||||
|
||||
// Main handler with API proxy and NEW Streaming Handlers
|
||||
final handler = Cascade()
|
||||
|
||||
Reference in new issue
Block a user