feat: Implement API handlers for live and VOD streaming and create database module.

This commit is contained in:
Michael committed 2026-01-01 20:13:56 +01:00
1 parent 72e28a398a
commit ce82b9e824
3 files changed
+47 -11

No files matched your search

+8 -2
View File
@@ -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()