From ce695b7e43fca855b4a0d05f0a2fd9c61fbd2017 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 1 Apr 2026 22:01:16 +0200 Subject: [PATCH] feat: implement streaming handler with FFmpeg HLS transcoding and live TV proxying --- bin/api/streaming_handler.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/api/streaming_handler.dart b/bin/api/streaming_handler.dart index 99aa41d..98b3b06 100644 --- a/bin/api/streaming_handler.dart +++ b/bin/api/streaming_handler.dart @@ -565,12 +565,12 @@ Handler createRecordingStreamHandler( router.get('//playlist.m3u8', (Request request, String streamId) async { final recording = db.getRecordingById(streamId); if (recording == null || recording.filePath == null) { - return Response.notFound('Recording or file not found'); + return Response.internalServerError(body: 'DEBUG_ERROR: Recording $streamId or file not found in DB'); } final targetUrl = recording.filePath!; if (!File(targetUrl).existsSync()) { - return Response.notFound('Physical recording file not found'); + return Response.internalServerError(body: 'DEBUG_ERROR: Physical recording file $targetUrl DOES NOT EXIST on disk.'); } final streamDir = Directory('${_hlsTempDir.path}/rec_$streamId');