weblive,正确销毁artplayer

This commit is contained in:
mtvpls
2026-01-20 23:18:10 +08:00
parent c354ec8168
commit 0359979477
2 changed files with 104 additions and 9 deletions
+4 -1
View File
@@ -190,6 +190,7 @@ export async function GET(request: NextRequest) {
}
const jsonData = JSON.parse(match[1] + '}');
const gameLiveInfo = jsonData.data?.[0]?.gameLiveInfo;
const streamInfo = jsonData.data?.[0]?.gameStreamInfoList?.[0];
if (!streamInfo) {
@@ -203,7 +204,9 @@ export async function GET(request: NextRequest) {
return NextResponse.json({
url: proxyUrl,
originalUrl: streamUrl
originalUrl: streamUrl,
name: gameLiveInfo?.nick || '',
title: gameLiveInfo?.introduction || ''
});
}