-
-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Your environment.
- Version: 1.7.2
- Browser: Chrome Version 92.0.4515.131 (Official Build) (x86_64)
- Error:
index.js:1 DOMException: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to set local answer sdp: Failed to set local video description recv parameters for m-section with mid='1'.
What did you do?
I am able to successfully connect to a remote stream in safari, but get the above error when trying to connect on chrome
const serverUrl = getServerUrl(roomId);
const signal = new IonSFUJSONRPCSignal(serverUrl);
client = new Client(signal, config);
signal.onopen = async () => {
try {
if (client) {
await client.join(roomId, 'someUid');
}
} catch (err) {
console.log('SETUP CLIENT ERROR', err);
}
};
client.ontrack = (track, stream) => {
if (track.kind === 'video') {
track.onunmute = () => {
const newVideoStream = {
autoplay: true,
id: stream.id,
muted: false,
srcObject: stream,
};
setVideoStream(newVideoStream);
};
}
};
What did you expect?
No error to occur
What happened?
Error occurred in sdk on setLocalDescription
Metadata
Metadata
Assignees
Labels
No labels