protocol update: explicit AddTrack to move negotiation initiation to server side.
In order to avoid race conditions with WebRTC, where either side could initiate an offer when tracks have changes, we'll always initiate them from the SFU side.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package rtc
|
||||
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/pion/ion-sfu/pkg/buffer"
|
||||
)
|
||||
|
||||
const (
|
||||
rtpPacketMaxSize = 1460
|
||||
)
|
||||
|
||||
// package level factories for buffers
|
||||
var (
|
||||
bufferFactory = buffer.NewBufferFactory()
|
||||
packetFactory = &sync.Pool{
|
||||
New: func() interface{} {
|
||||
return make([]byte, rtpPacketMaxSize)
|
||||
},
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user