【m】解决远端黑屏问题

This commit is contained in:
2026-05-16 18:16:57 +08:00
parent 87c4a56306
commit 53166b648f
2 changed files with 9 additions and 8 deletions

View File

@@ -239,7 +239,8 @@ function onOffer(ws: WebSocket, message: any): void {
}
} else {
// participant发送offer给host携带该participant的participantId
newOffer.polite = true;
// host端应为impolitepolite=false确保perfect negotiation中host优先
newOffer.polite = false;
group.host.send(JSON.stringify({ from: connectionId, to: "", type: "offer", data: newOffer, participantId: senderParticipantId }));
}
}