Send localDescription instead of original SDP.

This commit is contained in:
Juliusz Chroboczek
2021-01-11 20:27:39 +01:00
parent dad113c1f9
commit 820b303e84
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -464,7 +464,7 @@ func negotiate(c *webClient, down *rtpDownConnection, renegotiate, restartIce bo
Id: down.id,
Source: source,
Username: username,
SDP: offer.SDP,
SDP: down.pc.LocalDescription().SDP,
Labels: labels,
})
}
@@ -527,7 +527,7 @@ func gotOffer(c *webClient, id string, sdp string, renegotiate bool, labels map[
return c.write(clientMessage{
Type: "answer",
Id: id,
SDP: answer.SDP,
SDP: up.pc.LocalDescription().SDP,
})
}