Versions in this module Expand all Collapse all v0 v0.0.1 Nov 29, 2022 Changes in this version + type BandwidthEstimator interface + AddStream func(*interceptor.StreamInfo, interceptor.RTPWriter) interceptor.RTPWriter + Close func() error + GetStats func() map[string]interface{} + GetTargetBitrate func() int + OnTargetBitrateChange func(f func(bitrate int)) + WriteRTCP func([]rtcp.Packet, interceptor.Attributes) error + type BandwidthEstimatorFactory func() (BandwidthEstimator, error) + type Interceptor struct + func (c *Interceptor) BindLocalStream(info *interceptor.StreamInfo, writer interceptor.RTPWriter) interceptor.RTPWriter + func (c *Interceptor) BindRTCPReader(reader interceptor.RTCPReader) interceptor.RTCPReader + func (c *Interceptor) Close() error + type InterceptorFactory struct + func NewInterceptor(factory BandwidthEstimatorFactory, opts ...Option) (*InterceptorFactory, error) + func (f *InterceptorFactory) NewInterceptor(id string) (interceptor.Interceptor, error) + func (f *InterceptorFactory) OnNewPeerConnection(cb NewPeerConnectionCallback) + type NewPeerConnectionCallback func(id string, estimator BandwidthEstimator) + type Option func(*Interceptor) error