mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-21 22:18:04 +02:00
feat: Install FFmpeg with NVIDIA NVENC/NVDEC support via apt-get instead of a static build.
This commit is contained in:
1 parent
33a331dce9
commit
71630d75e8
9 files changed
+135
-86
No files matched your search
+14
-7
@@ -91,7 +91,8 @@ void main(List<String> args) async {
|
||||
final user = req.context['user'] as User?;
|
||||
if (user == null || !user.isAdmin) {
|
||||
return Response.forbidden(
|
||||
jsonEncode({'error': 'Admin access required'}));
|
||||
jsonEncode({'error': 'Admin access required'}),
|
||||
);
|
||||
}
|
||||
|
||||
final result = await cleanupService.runCleanup();
|
||||
@@ -173,13 +174,19 @@ void main(List<String> args) async {
|
||||
// Create Streaming Router (Mount handlers on correct paths)
|
||||
final streamingRouter = Router()
|
||||
..mount(
|
||||
'/api/live',
|
||||
createLiveStreamHandler(getPlaylist,
|
||||
isGpuEnabled: db.isNvidiaGpuEnabled))
|
||||
'/api/live',
|
||||
createLiveStreamHandler(
|
||||
getPlaylist,
|
||||
isGpuEnabled: db.isNvidiaGpuEnabled,
|
||||
),
|
||||
)
|
||||
..mount(
|
||||
'/api/vod',
|
||||
createVodStreamHandler(getPlaylist,
|
||||
isGpuEnabled: db.isNvidiaGpuEnabled));
|
||||
'/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