ring: update peer connection state handling and pass sdo to producer

This commit is contained in:
seydx
2025-05-10 19:04:47 +02:00
parent 2eef7bdbd3
commit edfa09bb9f
+5
View File
@@ -237,7 +237,10 @@ func Dial(rawURL string) (*Client, error) {
case pion.PeerConnectionState:
switch msg {
case pion.PeerConnectionStateNew:
break
case pion.PeerConnectionStateConnecting:
break
case pion.PeerConnectionStateConnected:
connState.Done(nil)
default:
@@ -391,6 +394,8 @@ func (c *Client) startMessageLoop(connState *core.Waiter) {
c.Stop()
return
}
prod.SDP = msg.Body.SDP
}
case "ice":