Documentation
¶
Index ¶
- Constants
- Variables
- type LimitSizeInterceptor
- type LimitSizeInterceptorFactory
- type NackGeneratorInterceptor
- func (n *NackGeneratorInterceptor) BindRTCPWriter(writer interceptor.RTCPWriter) interceptor.RTCPWriter
- func (n *NackGeneratorInterceptor) BindRemoteStream(info *interceptor.StreamInfo, reader interceptor.RTPReader) interceptor.RTPReader
- func (n *NackGeneratorInterceptor) SetRTT(rtt uint32)
- func (n *NackGeneratorInterceptor) UnbindRemoteStream(info *interceptor.StreamInfo)
- type NackGeneratorInterceptorFactory
- type PacerInterceptor
- type PacerInterceptorFactory
- type PacketPool
- type RTTInterceptor
- type RTTInterceptorFactory
Constants ¶
View Source
const (
MaxPayloadSize = 1200
)
Variables ¶
View Source
var ErrPayloadSizeTooLarge = fmt.Errorf("packetization payload size should not greater than %d bytes", MaxPayloadSize)
Functions ¶
This section is empty.
Types ¶
type LimitSizeInterceptor ¶ added in v1.1.4
type LimitSizeInterceptor struct {
interceptor.NoOp
}
func (*LimitSizeInterceptor) BindLocalStream ¶ added in v1.1.4
func (l *LimitSizeInterceptor) BindLocalStream(stream *interceptor.StreamInfo, writer interceptor.RTPWriter) interceptor.RTPWriter
type LimitSizeInterceptorFactory ¶ added in v1.1.4
type LimitSizeInterceptorFactory struct { }
func NewLimitSizeInterceptorFactory ¶ added in v1.1.4
func NewLimitSizeInterceptorFactory() *LimitSizeInterceptorFactory
func (*LimitSizeInterceptorFactory) NewInterceptor ¶ added in v1.1.4
func (l *LimitSizeInterceptorFactory) NewInterceptor(id string) (interceptor.Interceptor, error)
type NackGeneratorInterceptor ¶
type NackGeneratorInterceptor struct { interceptor.NoOp // contains filtered or unexported fields }
func NewNackGeneratorInterceptor ¶
func NewNackGeneratorInterceptor() (*NackGeneratorInterceptor, error)
func (*NackGeneratorInterceptor) BindRTCPWriter ¶
func (n *NackGeneratorInterceptor) BindRTCPWriter(writer interceptor.RTCPWriter) interceptor.RTCPWriter
func (*NackGeneratorInterceptor) BindRemoteStream ¶
func (n *NackGeneratorInterceptor) BindRemoteStream(info *interceptor.StreamInfo, reader interceptor.RTPReader) interceptor.RTPReader
func (*NackGeneratorInterceptor) SetRTT ¶
func (n *NackGeneratorInterceptor) SetRTT(rtt uint32)
func (*NackGeneratorInterceptor) UnbindRemoteStream ¶
func (n *NackGeneratorInterceptor) UnbindRemoteStream(info *interceptor.StreamInfo)
type NackGeneratorInterceptorFactory ¶
type NackGeneratorInterceptorFactory struct {
// contains filtered or unexported fields
}
func (*NackGeneratorInterceptorFactory) NewInterceptor ¶
func (g *NackGeneratorInterceptorFactory) NewInterceptor(id string) (interceptor.Interceptor, error)
NewInterceptor constructs a new ReceiverInterceptor
func (*NackGeneratorInterceptorFactory) SetRTT ¶
func (g *NackGeneratorInterceptorFactory) SetRTT(rtt uint32)
type PacerInterceptor ¶ added in v1.1.2
type PacerInterceptor struct { interceptor.NoOp // contains filtered or unexported fields }
PacerInterceptor is an interceptor that paces outgoing packets to avoid congestion on the bursty traffic of huge frames.
func (*PacerInterceptor) BindLocalStream ¶ added in v1.1.2
func (pi *PacerInterceptor) BindLocalStream(stream *interceptor.StreamInfo, writer interceptor.RTPWriter) interceptor.RTPWriter
func (*PacerInterceptor) BindRTCPWriter ¶ added in v1.1.2
func (pi *PacerInterceptor) BindRTCPWriter(writer interceptor.RTCPWriter) interceptor.RTCPWriter
BindRTCPWriter lets you modify any outgoing RTCP packets. It is called once per PeerConnection. The returned method will be called once per packet batch.
func (*PacerInterceptor) Close ¶ added in v1.1.2
func (pi *PacerInterceptor) Close() error
type PacerInterceptorFactory ¶ added in v1.1.2
type PacerInterceptorFactory struct {
// contains filtered or unexported fields
}
func NewPacerInterceptorFactory ¶ added in v1.1.2
func NewPacerInterceptorFactory(pacer pacer.Factory) *PacerInterceptorFactory
func (*PacerInterceptorFactory) NewInterceptor ¶ added in v1.1.2
func (p *PacerInterceptorFactory) NewInterceptor(id string) (interceptor.Interceptor, error)
type PacketPool ¶ added in v1.1.2
type PacketPool struct {
// contains filtered or unexported fields
}
func NewPacketPool ¶ added in v1.1.2
func NewPacketPool(size ...int) *PacketPool
type RTTInterceptor ¶ added in v1.1.5
type RTTInterceptor struct { interceptor.NoOp // contains filtered or unexported fields }
func NewRTTInterceptor ¶ added in v1.1.5
func NewRTTInterceptor(onRttUpdate func(rtt uint32)) *RTTInterceptor
func (*RTTInterceptor) BindRTCPReader ¶ added in v1.1.5
func (r *RTTInterceptor) BindRTCPReader(reader interceptor.RTCPReader) interceptor.RTCPReader
type RTTInterceptorFactory ¶ added in v1.1.5
type RTTInterceptorFactory struct {
// contains filtered or unexported fields
}
func NewRTTInterceptorFactory ¶ added in v1.1.5
func NewRTTInterceptorFactory(onRttUpdate func(rtt uint32)) *RTTInterceptorFactory
func (*RTTInterceptorFactory) NewInterceptor ¶ added in v1.1.5
func (r *RTTInterceptorFactory) NewInterceptor(_ string) (interceptor.Interceptor, error)
Click to show internal directories.
Click to hide internal directories.