weblive外部播放器使用原始地址
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user