egress

package
v1.56.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 7 modules, 9 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 (
	EgressTypeTemplate = "template"
	EgressTypeWeb      = "web"
	EgressTypeMedia    = "media"

	EgressTypeRoomComposite  = "room_composite"
	EgressTypeParticipant    = "participant"
	EgressTypeTrackComposite = "track_composite"
	EgressTypeTrack          = "track"

	OutputTypeFile     = "file"
	OutputTypeStream   = "stream"
	OutputTypeSegments = "segments"
	OutputTypeImages   = "images"
	OutputTypeMultiple = "multiple"

	Unknown = "unknown"
)

Variables

View Source
var (
	ErrNoResponse     = psrpc.NewErrorf(psrpc.Unavailable, "no response from egress service")
	ErrEgressTimedOut = psrpc.NewErrorf(psrpc.DeadlineExceeded, "egress timed out")
)

Functions

func AutoParticipantRequest added in v1.56.0

func AutoParticipantRequest(internal *livekit.RoomInternal, roomName, identity string) *rpc.StartEgressRequest

AutoParticipantRequest builds a participant's auto-egress request from the room's v1 or v2 config, or nil if it has none

func AutoRoomRequest added in v1.56.0

func AutoRoomRequest(cfg *livekit.RoomEgress, roomName string) *rpc.StartEgressRequest

AutoRoomRequest builds a room's auto room egress request from its v1 or v2 config, or nil if it has none

func AutoTrackRequest added in v1.56.0

func AutoTrackRequest(internal *livekit.RoomInternal, roomName, trackID string, trackType livekit.TrackType) *rpc.StartEgressRequest

AutoTrackRequest builds a published track's auto-egress request from the room's v1 or v2 config, or nil if it has none

func BuildEgressToken

func BuildEgressToken(egressID, apiKey, secret, roomName string) (string, error)

func GetEgressNotifyOptions added in v1.37.0

func GetEgressNotifyOptions(egressInfo *livekit.EgressInfo) []webhook.NotifyOption

func GetOutputType added in v1.6.1

func GetOutputType(req interface{}) string

func GetOutputTypeV2 added in v1.45.2

func GetOutputTypeV2(outputs []*livekit.Output) string

func GetTypes added in v1.5.6

func GetTypes(request any) (string, string)

func RedactAutoEncodedOutput added in v1.16.0

func RedactAutoEncodedOutput(out AutoEncodedOutput)

func RedactDirectOutputs added in v1.16.0

func RedactDirectOutputs(out DirectOutput)

func RedactEncodedOutputs added in v1.16.0

func RedactEncodedOutputs(out EncodedOutput)

func RedactStartEgressRequest added in v1.45.2

func RedactStartEgressRequest(req EgressRequest)

RedactStartEgressRequest redacts secrets from a V2 StartEgressRequest.

func RedactStreamKeys added in v1.16.0

func RedactStreamKeys(stream *livekit.StreamOutput)

func RedactUpload added in v1.16.0

func RedactUpload(req UploadRequest)

func ValidateRoomEgress added in v1.56.0

func ValidateRoomEgress(cfg *livekit.RoomEgress) error

ValidateRoomEgress rejects v1 and v2 config for the same kind, and v2 config that egress would reject

Types

type AutoEncodedOutput added in v1.16.0

type AutoEncodedOutput interface {
	GetFileOutputs() []*livekit.EncodedFileOutput
	GetSegmentOutputs() []*livekit.SegmentedFileOutput
}

Outputs that can be used in egress that are started automatically on room creation

type DirectOutput added in v1.14.0

type DirectOutput interface {
	GetFile() *livekit.DirectFileOutput
	GetWebsocketUrl() string
}

type EgressRequest added in v1.45.2

type EgressRequest interface {
	GetMedia() *livekit.MediaSource
	GetTemplate() *livekit.TemplateSource
	GetWeb() *livekit.WebSource
	GetOutputs() []*livekit.Output
	GetStorage() *livekit.StorageConfig
}

type EncodedOutput added in v1.6.1

type EncodedOutput interface {
	AutoEncodedOutput
	GetStreamOutputs() []*livekit.StreamOutput
	GetImageOutputs() []*livekit.ImageOutput
}

type EncodedOutputDeprecated added in v1.6.1

type EncodedOutputDeprecated interface {
	GetFile() *livekit.EncodedFileOutput
	GetStream() *livekit.StreamOutput
	GetSegments() *livekit.SegmentedFileOutput
}

type UploadRequest added in v1.16.0

type UploadRequest interface {
	GetS3() *livekit.S3Upload
	GetGcp() *livekit.GCPUpload
	GetAzure() *livekit.AzureBlobUpload
	GetAliOSS() *livekit.AliOSSUpload
}

Jump to

Keyboard shortcuts

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