millions-honey-27871
07/24/2025, 2:20 AM[Error] Alcamine:
NotSupportedError: mimeType is not supported
MediaRecorder
kf — index-CvxFSaw0.js:53:20010
startPreConnectBuffer — index-CvxFSaw0.js:53:31148
(anonymous function) — index-CvxFSaw0.js:53:114149
a — index-CvxFSaw0.js:17:55944
(anonymous function) (index-CvxFSaw0.js:92:10682)
[Error] Unknown DataChannel error on lossy
Object
event: RTCErrorEvent {isTrusted: true, error: OperationError: User-Initiated Abort, reason=, type: "error", target: RTCDataChannel, currentTarget: null, …}
pID: "PA_akW8ux4rXoK9"
participant: "voice_assistant_user_7813"
room: "session_zoweczhx3awrexxsbtqetstp__1753283671803"
roomID: ""
Object Prototype
(anonymous function) (index-CvxFSaw0.js:53:54428)dry-elephant-14928
07/24/2025, 4:25 AMdry-elephant-14928
07/24/2025, 4:39 AMmillions-honey-27871
07/24/2025, 5:01 AMthis._roomManager[session.id] = new Room();
await Promise.all([
this._roomManager[session.id].localParticipant.setMicrophoneEnabled(
true,
undefined,
{
preConnectBuffer: true,
},
),
this._roomManager[session.id].connect(
connectionDetails.connection.serverUrl,
connectionDetails.connection.participantToken,
),
]);
this._roomManager[session.id].registerRpcMethod(
'changeBackgroundColor',
async (data: RpcInvocationData) => {
try {
const { color } = JSON.parse(data.payload);
document.body.style.backgroundColor = color ?? 'red';
return 'ok'; // echoed back to the Agent coroutine
} catch {
throw new RpcError(1, 'Failed to set background color');
}
},
);millions-honey-27871
07/24/2025, 5:22 AMpreConnectBuffer that's causing issues. Here's the workaround code:
import { getBrowser } from 'livekit-client';
// Preconnect doesn't work on iOS safari < 18.5!
browser?.name === 'Safari' && browser.os === 'iOS'
? undefined
: {
preConnectBuffer: true,
},dry-elephant-14928
07/24/2025, 6:06 AMvictorious-ability-40525
07/27/2025, 9:51 PMvictorious-ability-40525
07/27/2025, 9:52 PMmillions-honey-27871
08/01/2025, 1:16 AMbrowser.os is undefined for certain iOS versions. Additionally, Chrome on iOS has the sam problem since it's all webkit under the hood. The only workaround I've found is to totally remove it but that costs a few seconds on every connection 💀