Fix remote voice negotiation and teleport cue timing

This commit is contained in:
Jage9
2026-02-25 02:01:37 -05:00
parent fad78e12af
commit 561801e97c
3 changed files with 6 additions and 4 deletions

View File

@@ -50,6 +50,9 @@ export class PeerManager {
const stream = this.getLocalStream();
if (stream) {
stream.getTracks().forEach((track) => pc.addTrack(track, stream));
} else {
// Ensure initial offers still negotiate audio receive even before mic setup finishes.
pc.addTransceiver('audio', { direction: 'sendrecv' });
}
pc.onicecandidate = (event) => {