This commit is contained in:
legop3
2026-03-20 01:50:29 -04:00
parent 7ad3dc7015
commit c729631104
7 changed files with 144 additions and 128 deletions
+2
View File
@@ -17,6 +17,7 @@ export default function VipPanel() {
stopMicForward,
sendMicChunk,
startMicWhip,
readyMicWhip,
stopMicWhip,
} = useSession();
const { value: identity, save: saveIdentity } = useSettingsNamespace('identity', { cookieUserId: '' });
@@ -60,6 +61,7 @@ export default function VipPanel() {
stopMicForward={stopMicForward}
sendMicChunk={sendMicChunk}
startMicWhip={startMicWhip}
readyMicWhip={readyMicWhip}
stopMicWhip={stopMicWhip}
/>
) : (
@@ -99,6 +99,7 @@ export default function VipAudioForwardingCard({
stopMicForward,
sendMicChunk,
startMicWhip,
readyMicWhip,
stopMicWhip,
}) {
const { state: controlState } = useControlSystem();
@@ -367,6 +368,7 @@ export default function VipAudioForwardingCard({
}
const answerSdp = await response.text();
await pc.setRemoteDescription({ type: 'answer', sdp: answerSdp });
await readyMicWhip?.(target);
setMicState('live');
} catch (err) {
try {
@@ -381,7 +383,7 @@ export default function VipAudioForwardingCard({
throw err;
}
},
[startMicWhip, startSocketBridge, stopMicWhip],
[readyMicWhip, startMicWhip, startSocketBridge, stopMicWhip],
);
const startMicCapture = useCallback(