fix: consolidate audited dev updates

This commit is contained in:
illusia committed 2026-10-08 10:32:59 +08:00
1 parent 568b8fd8be
commit 0a552f7ee8
58 files changed
+1930 -132

No files matched your search

+3 -1
View File
@@ -16,6 +16,7 @@ interface Connection {
interface TransportOptions {
prepareMicrophone(): Promise<Microphone | null>;
stunServer?(): string;
stopPcm(): void;
muted(): boolean;
inputVolume(): number;
@@ -127,7 +128,8 @@ export function createWebRtcTransport(options: TransportOptions) {
try {
options.stopPcm();
const peer = new RTCPeerConnection({ iceServers: [] });
const stunServer = options.stunServer?.();
const peer = new RTCPeerConnection({ iceServers: stunServer ? [{ urls: stunServer }] : [] });
record.peer = peer;
track.enabled = !options.muted();
const input = createWebRtcInput(context, processedStream, options.muted() ? 0 : options.inputVolume());