rtp

package
v0.0.0-...-7e6c5de Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options ...Option) (*interceptor.Registry, error)

func ReadRTCP

func ReadRTCP(ctx context.Context, rtcpReader interceptor.RTCPReader, rtcpChan <-chan RTCPFeedback)

Types

type AttributeKey

type AttributeKey int
const (
	RELIABILITY AttributeKey = iota
)

type BandwidthEstimator

type BandwidthEstimator struct {
	// contains filtered or unexported fields
}

func NewBandwidthEstimator

func NewBandwidthEstimator(logfile string) (*BandwidthEstimator, error)

func (*BandwidthEstimator) OnNewGCCEstimator

func (e *BandwidthEstimator) OnNewGCCEstimator(_ string, bwe cc.BandwidthEstimator)

func (*BandwidthEstimator) OnNewSCReAMEstimator

func (e *BandwidthEstimator) OnNewSCReAMEstimator(_ string, bwe scream.BandwidthEstimator)

func (*BandwidthEstimator) RunGCC

func (e *BandwidthEstimator) RunGCC(ctx context.Context) error

func (*BandwidthEstimator) RunSCReAM

func (e *BandwidthEstimator) RunSCReAM(ctx context.Context) error

func (*BandwidthEstimator) SetMedia

func (e *BandwidthEstimator) SetMedia(m Media)

type Media

type Media interface {
	SetTargetBitsPerSecond(uint)
}

type Option

type Option func(*interceptor.Registry) error

func RegisterGCC

func RegisterGCC(cb cc.NewPeerConnectionCallback) Option

func RegisterRFC8888

func RegisterRFC8888() Option

func RegisterRFC8888Pion

func RegisterRFC8888Pion() Option

func RegisterReceiverPacketLog

func RegisterReceiverPacketLog(rtpLogFileName, rtcpLogFileName string) Option

func RegisterSCReAM

func RegisterSCReAM(cb scream.NewPeerConnectionCallback, initialBitrate int) Option

func RegisterSenderPacketLog

func RegisterSenderPacketLog(rtpLogFileName, rtcpLogFileName string) Option

func RegisterTWCC

func RegisterTWCC() Option

func RegisterTWCCHeaderExtension

func RegisterTWCCHeaderExtension() Option

type RTCPFeedback

type RTCPFeedback struct {
	Buffer     []byte
	Attributes interceptor.Attributes
}

type Reliability

type Reliability bool
const (
	REQUIRED     Reliability = true
	NOT_REQUIRED Reliability = false
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址