interceptor

package
v1.13.11 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SDESRepairRTPStreamIDURI = "urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RTXInfoExtractor

type RTXInfoExtractor struct {
	interceptor.NoOp
	// contains filtered or unexported fields
}

func (*RTXInfoExtractor) BindRemoteStream

type RTXInfoExtractorFactory

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

func NewRTXInfoExtractorFactory

func NewRTXInfoExtractorFactory(
	onStreamFound func(*interceptor.StreamInfo),
	onRTXPairFound func(repair, base uint32, rsid string),
	prober StreamInfoProber,
	simTracks map[uint32]SimulcastTrackInfo,
	logger logger.Logger,
) *RTXInfoExtractorFactory

func (*RTXInfoExtractorFactory) NewInterceptor

func (f *RTXInfoExtractorFactory) NewInterceptor(id string) (interceptor.Interceptor, error)

func (*RTXInfoExtractorFactory) SetStreamInfo added in v1.9.10

func (f *RTXInfoExtractorFactory) SetStreamInfo(ssrc uint32, mid, rid, rsid string)

type SimulcastTrackInfo added in v1.9.10

type SimulcastTrackInfo struct {
	Mid            string
	StreamID       string
	RepairSSRC     uint32 // set only when `IsRepairStream: false`, i. e. RTX SSRC for the primary stream
	IsRepairStream bool
}

func (*SimulcastTrackInfo) MarshalLogObject added in v1.9.10

func (s *SimulcastTrackInfo) MarshalLogObject(e zapcore.ObjectEncoder) error

type StreamInfoProber added in v1.13.6

type StreamInfoProber interface {
	SetStreamInfoProbe(ssrc uint32, probe *buffer.StreamInfoProbe) bool
}

StreamInfoProber installs a bounded probe that identifies a remote stream from the mid/rid/rsid header extensions of its packets. Implemented by buffer.Factory.

type UnhandleSimulcastInterceptor added in v1.9.10

type UnhandleSimulcastInterceptor struct {
	interceptor.NoOp
	// contains filtered or unexported fields
}

func (*UnhandleSimulcastInterceptor) BindRemoteStream added in v1.9.10

type UnhandleSimulcastInterceptorFactory added in v1.9.10

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

func NewUnhandleSimulcastInterceptorFactory added in v1.9.10

func NewUnhandleSimulcastInterceptorFactory(opts ...UnhandleSimulcastOption) (*UnhandleSimulcastInterceptorFactory, error)

func (*UnhandleSimulcastInterceptorFactory) NewInterceptor added in v1.9.10

type UnhandleSimulcastOption added in v1.9.10

type UnhandleSimulcastOption func(u *UnhandleSimulcastInterceptor) error

func UnhandleSimulcastTracks added in v1.9.10

func UnhandleSimulcastTracks(logger logger.Logger, tracks map[uint32]SimulcastTrackInfo) UnhandleSimulcastOption

Jump to

Keyboard shortcuts

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