Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interceptor ¶
type Interceptor struct {
interceptor.NoOp
// contains filtered or unexported fields
}
func (*Interceptor) BindLocalStream ¶
func (p *Interceptor) BindLocalStream(info *interceptor.StreamInfo, writer interceptor.RTPWriter) interceptor.RTPWriter
func (*Interceptor) Close ¶
func (p *Interceptor) Close() error
func (*Interceptor) SetTargetBitrate ¶
func (p *Interceptor) SetTargetBitrate(target int64)
func (*Interceptor) UnbindLocalStream ¶
func (p *Interceptor) UnbindLocalStream(info *interceptor.StreamInfo)
type InterceptorFactory ¶
type InterceptorFactory struct {
InitialBitrate int64
StepDuration time.Duration
MaxBucketDuration time.Duration
// contains filtered or unexported fields
}
func NewInterceptorFactory ¶
func NewInterceptorFactory(options ...Option) *InterceptorFactory
func (*InterceptorFactory) NewInterceptor ¶
func (f *InterceptorFactory) NewInterceptor(_ string) (interceptor.Interceptor, error)
func (*InterceptorFactory) OnNewPeerConnection ¶
func (f *InterceptorFactory) OnNewPeerConnection(cb NewPeerConnectionCallback)
OnNewPeerConnection sets a callback that is called when a new CC interceptor is created.
type NewPeerConnectionCallback ¶
type NewPeerConnectionCallback func(pacer *Interceptor)
type Option ¶
type Option func(*InterceptorFactory)
func WithInitialBitrate ¶
func WithMaxBucketDuration ¶
func WithStepDuration ¶
Click to show internal directories.
Click to hide internal directories.