binding to buffer and correctly forwarding

This commit is contained in:
David Zhao
2021-01-10 16:18:58 -08:00
parent 258f5add2d
commit 7dcb88343a
18 changed files with 751 additions and 338 deletions
+4 -5
View File
@@ -11,12 +11,11 @@ import (
type WebRTCConfig struct {
Configuration webrtc.Configuration
SettingEngine webrtc.SettingEngine
receiver ReceiverConfig
Receiver ReceiverConfig
}
type ReceiverConfig struct {
maxBandwidth uint64
maxBitrate uint64
maxBufferTime int
}
@@ -48,8 +47,8 @@ func NewWebRTCConfig(conf *config.RTCConfig, externalIP string) (*WebRTCConfig,
return &WebRTCConfig{
Configuration: c,
SettingEngine: s,
receiver: ReceiverConfig{
maxBandwidth: conf.MaxBandwidth,
Receiver: ReceiverConfig{
maxBitrate: conf.MaxBitrate,
maxBufferTime: conf.MaxBufferTime,
},
}, nil