feat: Implement initial streaming handler for live and VOD content using FFmpeg HLS transcoding with GPU acceleration support.

This commit is contained in:
Michael committed 2026-03-09 13:46:56 +01:00
1 parent bd7645922d
commit 0b5aa3f9e4
2 files changed
+5 -4

No files matched your search

+3 -2
View File
@@ -126,8 +126,9 @@ Handler createLiveStreamHandler(
}) {
final router = Router();
// Route: /api/live/{streamId}.m3u8 (Master playlist)
router.get('/<streamId>.m3u8', (Request request, String streamId) async {
// Route: /api/live/{streamId}/playlist.m3u8 (Master playlist)
router.get('/<streamId>/playlist.m3u8',
(Request request, String streamId) async {
final playlist = await getPlaylist(request);
if (playlist == null) return Response.forbidden('No playlist');