Link a section in the pion/webrtc@3.0.0 release notes.

This commit is contained in:
David Fifield 2023-11-21 01:27:09 +00:00
parent a88f73b0ff
commit 234d9cb11c
2 changed files with 2 additions and 2 deletions

View file

@ -234,7 +234,7 @@ func (c *WebRTCPeer) preparePeerConnection(config *webrtc.Configuration) error {
Ordered: &ordered,
}
// We must create the data channel before creating an offer
// https://github.com/pion/webrtc/wiki/Release-WebRTC@v3.0.0
// https://github.com/pion/webrtc/wiki/Release-WebRTC@v3.0.0#a-data-channel-is-no-longer-implicitly-created-with-a-peerconnection
dc, err := c.pc.CreateDataChannel(c.id, dataChannelOptions)
if err != nil {
log.Printf("CreateDataChannel ERROR: %s", err)

View file

@ -525,7 +525,7 @@ func (sf *SnowflakeProxy) makeNewPeerConnection(config webrtc.Configuration,
}
// Must create a data channel before creating an offer
// https://github.com/pion/webrtc/wiki/Release-WebRTC@v3.0.0
// https://github.com/pion/webrtc/wiki/Release-WebRTC@v3.0.0#a-data-channel-is-no-longer-implicitly-created-with-a-peerconnection
dc, err := pc.CreateDataChannel("test", &webrtc.DataChannelInit{})
if err != nil {
log.Printf("CreateDataChannel ERROR: %s", err)