feat: disable flv live

This commit is contained in:
shinya
2025-08-26 14:31:46 +08:00
parent b63400ca0a
commit fa46e05c7c
4 changed files with 86 additions and 68 deletions

View File

@@ -35,6 +35,9 @@ export async function GET(request: NextRequest) {
}
const contentType = response.headers.get('Content-Type');
if (response.body) {
response.body.cancel();
}
if (contentType?.includes('video/mp4')) {
return NextResponse.json({ success: true, type: 'mp4' }, { status: 200 });
}