params

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 17 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) error

Types

type Params

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

	AudioEncodingOptions *livekit.IngressAudioEncodingOptions
	VideoEncodingOptions *livekit.IngressVideoEncodingOptions

	// connection info
	WsUrl string
	Token string

	// relay info
	RelayUrl 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 string, ep any) (*Params, error)

func (*Params) CopyInfo

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

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) SetInputAudioBitrate added in v1.1.0

func (p *Params) SetInputAudioBitrate(averageBps uint32, currentBps uint32)

func (*Params) SetInputAudioState

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

func (*Params) SetInputVideoBitrate added in v1.1.0

func (p *Params) SetInputVideoBitrate(averageBps uint32, currentBps uint32)

func (*Params) SetInputVideoState

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

func (*Params) SetRoomId

func (p *Params) SetRoomId(roomId string)

func (*Params) SetStatus

func (p *Params) SetStatus(status livekit.IngressState_Status, errString string)

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