mirror of
https://github.com/pion/webrtc.git
synced 2025-09-27 11:32:19 +08:00
Add buffer factory
Allow to configure a buffer factory on SettingEngine to provide a custom buffer for RTP/RTCP
This commit is contained in:

committed by
Tarrence van As

parent
c387312c60
commit
6ef4c1bba8
@@ -3,10 +3,12 @@
|
||||
package webrtc
|
||||
|
||||
import (
|
||||
"io"
|
||||
"time"
|
||||
|
||||
"github.com/pion/ice/v2"
|
||||
"github.com/pion/logging"
|
||||
"github.com/pion/transport/packetio"
|
||||
"github.com/pion/transport/vnet"
|
||||
"golang.org/x/net/proxy"
|
||||
)
|
||||
@@ -53,6 +55,7 @@ type SettingEngine struct {
|
||||
disableSRTPReplayProtection bool
|
||||
disableSRTCPReplayProtection bool
|
||||
vnet *vnet.Net
|
||||
BufferFactory func(packetType packetio.BufferPacketType, ssrc uint32) io.ReadWriteCloser
|
||||
LoggerFactory logging.LoggerFactory
|
||||
iceTCPMux ice.TCPMux
|
||||
iceProxyDialer proxy.Dialer
|
||||
|
Reference in New Issue
Block a user