Update for the latest go-webrtc

* From https://github.com/keroserene/go-webrtc/pull/59
This commit is contained in:
Arlo Breault 2017-10-12 17:17:57 -04:00
parent fd217ffaab
commit 441cd8c80f

View file

@ -197,7 +197,7 @@ func (c *WebRTCPeer) establishDataChannel() error {
if c.transport != nil { if c.transport != nil {
panic("Unexpected datachannel already exists!") panic("Unexpected datachannel already exists!")
} }
dc, err := c.pc.CreateDataChannel(c.id, webrtc.Init{}) dc, err := c.pc.CreateDataChannel(c.id)
// Triggers "OnNegotiationNeeded" on the PeerConnection, which will prepare // Triggers "OnNegotiationNeeded" on the PeerConnection, which will prepare
// an SDP offer while other goroutines operating on this struct handle the // an SDP offer while other goroutines operating on this struct handle the
// signaling. Eventually fires "OnOpen". // signaling. Eventually fires "OnOpen".