livekit

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConnectivity added in v0.10.0

func CheckConnectivity(cfg config.LiveKit) error

Types

type LiveKitWebRTC

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

func NewLiveKitWebRTC

func NewLiveKitWebRTC(
	ctx context.Context,
	cfg config.LiveKit,
	rec recorder.Recorder,
	roomId string,
	trackIds []string,
) *LiveKitWebRTC

func (*LiveKitWebRTC) Close

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

func (*LiveKitWebRTC) GetStats

func (w *LiveKitWebRTC) GetStats() *appstats.CaptureStats

func (*LiveKitWebRTC) HasTrack added in v0.9.4

func (w *LiveKitWebRTC) HasTrack(trackID string) bool

func (*LiveKitWebRTC) Init

func (w *LiveKitWebRTC) Init() error

func (*LiveKitWebRTC) RequestKeyframe

func (w *LiveKitWebRTC) RequestKeyframe()

func (*LiveKitWebRTC) RequestKeyframeForSSRC

func (w *LiveKitWebRTC) RequestKeyframeForSSRC(ssrc uint32)

func (*LiveKitWebRTC) SetConnectionStateCallback

func (w *LiveKitWebRTC) SetConnectionStateCallback(callback func(state utils.ConnectionState))

func (*LiveKitWebRTC) SetFlowCallback

func (w *LiveKitWebRTC) SetFlowCallback(callback func(isFlowing bool, timestamp time.Duration, closed bool))

type MimeType

type MimeType string
const (
	MimeTypeVP8  MimeType = "video/vp8"
	MimeTypeOpus MimeType = "audio/opus"
)

type TrackKind

type TrackKind string
const (
	TrackKindVideo TrackKind = "video"
	TrackKindAudio TrackKind = "audio"
)

Jump to

Keyboard shortcuts

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