|
@@ -343,12 +343,14 @@ export class Negotiator {
|
|
async handleCandidate(ice: any): Promise<void> {
|
|
async handleCandidate(ice: any): Promise<void> {
|
|
const candidate = ice.candidate;
|
|
const candidate = ice.candidate;
|
|
const sdpMLineIndex = ice.sdpMLineIndex;
|
|
const sdpMLineIndex = ice.sdpMLineIndex;
|
|
|
|
+ const sdpMid = ice.sdpMid;
|
|
const peerConnection = this.connection.peerConnection;
|
|
const peerConnection = this.connection.peerConnection;
|
|
const provider = this.connection.provider;
|
|
const provider = this.connection.provider;
|
|
|
|
|
|
try {
|
|
try {
|
|
await peerConnection.addIceCandidate(
|
|
await peerConnection.addIceCandidate(
|
|
new RTCIceCandidate({
|
|
new RTCIceCandidate({
|
|
|
|
+ sdpMid: sdpMid,
|
|
sdpMLineIndex: sdpMLineIndex,
|
|
sdpMLineIndex: sdpMLineIndex,
|
|
candidate: candidate
|
|
candidate: candidate
|
|
})
|
|
})
|