receiver class, imported relevant SFU helpers

This commit is contained in:
David Zhao
2020-10-23 23:01:35 -07:00
parent 71d3a470f5
commit 6c039bc64f
12 changed files with 890 additions and 25 deletions
+8 -2
View File
@@ -15,6 +15,10 @@ type WebRTCConfig struct {
setting webrtc.SettingEngine
feedbackTypes []webrtc.RTCPFeedback
receiver ReceiverConfig
}
type ReceiverConfig struct {
maxBandwidth uint64
maxBufferTime int
}
@@ -67,7 +71,9 @@ func NewWebRTCConfig(conf *config.RTCConfig, externalIP string) (*WebRTCConfig,
configuration: c,
setting: s,
feedbackTypes: ft,
maxBandwidth: conf.MaxBandwidth,
maxBufferTime: conf.MaxBufferTime,
receiver: ReceiverConfig{
maxBandwidth: conf.MaxBandwidth,
maxBufferTime: conf.MaxBufferTime,
},
}, nil
}