params

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 18 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

This section is empty.

Variables

This section is empty.

Functions

func CopyRedactedIngressInfo added in v1.1.0

func CopyRedactedIngressInfo(info *livekit.IngressInfo) *livekit.IngressInfo

func InitLogger added in v1.1.0

func InitLogger(conf *config.Config, info *livekit.IngressInfo, loggingFields map[string]string) error

Types

type Params

type Params struct {
	*livekit.IngressInfo
	*config.Config

	AudioEncodingOptions *livekit.IngressAudioEncodingOptions
	VideoEncodingOptions *livekit.IngressVideoEncodingOptions

	// connection info
	WsUrl string
	Token string

	// extra logging fields
	LoggingFields map[string]string

	// relay info
	RelayUrl   string
	RelayToken string
	TmpDir     string

	// Input type specific private parameters
	ExtraParams any
	// contains filtered or unexported fields
}

func GetParams

func GetParams(ctx context.Context, psrpcClient rpc.IOInfoClient, conf *config.Config, info *livekit.IngressInfo, wsUrl, token, relayToken string, loggingFields map[string]string, ep any) (*Params, error)

func (*Params) CopyInfo

func (p *Params) CopyInfo() *livekit.IngressInfo

func (*Params) GetLogger added in v1.3.0

func (p *Params) GetLogger() logger.Logger

func (*Params) SendStateUpdate

func (p *Params) SendStateUpdate(ctx context.Context)

func (*Params) SetExtraParams added in v1.1.0

func (p *Params) SetExtraParams(ep any)

Useful in some paths where the extanded params are not known at creation time

func (*Params) SetInputAudioState

func (p *Params) SetInputAudioState(ctx context.Context, audioState *livekit.InputAudioState, sendUpdateIfModified bool)

func (*Params) SetInputAudioStats added in v1.3.0

func (p *Params) SetInputAudioStats(st *ipc.TrackStats)

func (*Params) SetInputVideoState

func (p *Params) SetInputVideoState(ctx context.Context, videoState *livekit.InputVideoState, sendUpdateIfModified bool)

func (*Params) SetInputVideoStats added in v1.3.0

func (p *Params) SetInputVideoStats(st *ipc.TrackStats)

func (*Params) SetRoomId

func (p *Params) SetRoomId(roomId string)

func (*Params) SetStatus

func (p *Params) SetStatus(status livekit.IngressState_Status, err error)

type WhipExtraParams

type WhipExtraParams struct {
	MimeTypes map[types.StreamKind]string `json:"mime_types"`
}

Jump to

Keyboard shortcuts

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