playoutdelay

package
v0.0.0-...-0cdedd5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlayoutDelayURI        = "http://www.webrtc.org/experiments/rtp-hdrext/playout-delay"
	PlayoutDelayDefaultMax = 4000 // 4s

)

Variables

This section is empty.

Functions

func RegisterPlayoutDelayHeaderExtension

func RegisterPlayoutDelayHeaderExtension(m *webrtc.MediaEngine)

Types

type Interceptor

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

func (*Interceptor) BindLocalStream

func (v *Interceptor) BindLocalStream(info *interceptor.StreamInfo, writer interceptor.RTPWriter) interceptor.RTPWriter

BindLocalStream lets you modify any outgoing RTP packets. It is called once for per LocalStream. The returned method will be called once per rtp packet.

func (*Interceptor) BindRTCPReader

func (v *Interceptor) BindRTCPReader(reader interceptor.RTCPReader) interceptor.RTCPReader

BindRTCPReader lets you modify any incoming RTCP packets. It is called once per sender/receiver, however this might change in the future. The returned method will be called once per packet batch.

func (*Interceptor) BindRTCPWriter

func (v *Interceptor) 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 (*Interceptor) BindRemoteStream

func (v *Interceptor) BindRemoteStream(info *interceptor.StreamInfo, reader interceptor.RTPReader) interceptor.RTPReader

BindRemoteStream lets you modify any incoming RTP packets. It is called once for per RemoteStream. The returned method will be called once per rtp packet.

func (*Interceptor) Close

func (v *Interceptor) Close() error

func (*Interceptor) UnbindLocalStream

func (v *Interceptor) UnbindLocalStream(info *interceptor.StreamInfo)

UnbindLocalStream is called when the Stream is removed. It can be used to clean up any data related to that track.

func (*Interceptor) UnbindRemoteStream

func (v *Interceptor) UnbindRemoteStream(info *interceptor.StreamInfo)

type InterceptorFactory

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

func NewInterceptor

func NewInterceptor(minDelay, maxDelay uint16) *InterceptorFactory

func (*InterceptorFactory) NewInterceptor

func (g *InterceptorFactory) NewInterceptor(_ string) (interceptor.Interceptor, error)

NewInterceptor constructs a new ReceiverInterceptor

type PlayOutDelay

type PlayOutDelay struct {
	Min, Max uint16 // delay in ms
}

func PlayoutDelayFromValue

func PlayoutDelayFromValue(min, max uint16) PlayOutDelay

func (PlayOutDelay) Marshal

func (p PlayOutDelay) Marshal() ([]byte, error)

func (*PlayOutDelay) Unmarshal

func (p *PlayOutDelay) Unmarshal(rawData []byte) error

Jump to

Keyboard shortcuts

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