weblive外部播放器使用原始地址

This commit is contained in:
mtvpls
2026-01-20 19:47:39 +08:00
parent 2d8b410b33
commit 7ef9737cb6
2 changed files with 18 additions and 13 deletions

View File

@@ -59,7 +59,10 @@ export async function GET(request: NextRequest) {
const streamUrl = `${sFlvUrl}/${sStreamName}.${sFlvUrlSuffix}?${newAntiCode}`;
const proxyUrl = `/api/web-live/proxy/proxy.flv?url=${encodeURIComponent(streamUrl)}`;
return NextResponse.json({ url: proxyUrl });
return NextResponse.json({
url: proxyUrl,
originalUrl: streamUrl
});
}
return NextResponse.json({ error: '不支持的平台' }, { status: 400 });