ring: update peer connection state handling and pass sdo to producer
This commit is contained in:
@@ -237,7 +237,10 @@ func Dial(rawURL string) (*Client, error) {
|
|||||||
|
|
||||||
case pion.PeerConnectionState:
|
case pion.PeerConnectionState:
|
||||||
switch msg {
|
switch msg {
|
||||||
|
case pion.PeerConnectionStateNew:
|
||||||
|
break
|
||||||
case pion.PeerConnectionStateConnecting:
|
case pion.PeerConnectionStateConnecting:
|
||||||
|
break
|
||||||
case pion.PeerConnectionStateConnected:
|
case pion.PeerConnectionStateConnected:
|
||||||
connState.Done(nil)
|
connState.Done(nil)
|
||||||
default:
|
default:
|
||||||
@@ -391,6 +394,8 @@ func (c *Client) startMessageLoop(connState *core.Waiter) {
|
|||||||
c.Stop()
|
c.Stop()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prod.SDP = msg.Body.SDP
|
||||||
}
|
}
|
||||||
|
|
||||||
case "ice":
|
case "ice":
|
||||||
|
|||||||
Reference in New Issue
Block a user