webrtc

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NACKTracker

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

type PLITracker

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

type WebRTC

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

func NewWebRTC

func NewWebRTC(ctx context.Context, cfg config.WebRTC, rec recorder.Recorder) *WebRTC

func (*WebRTC) Close

func (w *WebRTC) Close() time.Duration

func (*WebRTC) Init

func (w *WebRTC) Init() (webrtc.SessionDescription, error)

func (*WebRTC) RequestKeyframe

func (w *WebRTC) RequestKeyframe()

func (WebRTC) RequestKeyframeForSSRC

func (w WebRTC) RequestKeyframeForSSRC(ssrc uint32)

func (*WebRTC) SetConnectionStateCallback

func (w *WebRTC) SetConnectionStateCallback(fn func(state utils.ConnectionState))

func (*WebRTC) SetFlowCallback

func (w *WebRTC) SetFlowCallback(fn func(isFlowing bool, videoTimestamp time.Duration, closed bool))

func (*WebRTC) SetSDPOffer

func (w *WebRTC) SetSDPOffer(offer webrtc.SessionDescription)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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