roomobs

package
v1.43.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 5 Imported by: 7

Documentation

Overview

Code generated; DO NOT EDIT.

Index

Constants

View Source
const Version_NMAE2MO = true

Variables

This section is empty.

Functions

func FormatBrowser

func FormatBrowser(clientInfo *livekit.ClientInfo) string

func FormatSDKVersion

func FormatSDKVersion(clientInfo *livekit.ClientInfo) string

func PackCountryCode

func PackCountryCode(isoAlpha2 string) uint16

func PackTrackLayer

func PackTrackLayer(x, y uint32) uint32

func UnpackCountryCode

func UnpackCountryCode(code uint16) (isoAlpha2 string)

func UnpackTrackLayer

func UnpackTrackLayer(layer uint32) (x, y int)

Types

type ClientOS

type ClientOS string
const (
	ClientOSUndefined ClientOS = ""
	ClientOSIos       ClientOS = "ios"
	ClientOSAndroid   ClientOS = "android"
	ClientOSWindows   ClientOS = "windows"
	ClientOSMac       ClientOS = "mac"
	ClientOSLinux     ClientOS = "linux"
)

func ToClientOS

func ToClientOS(os string) ClientOS

type ConnectionResult

type ConnectionResult string
const (
	ConnectionResultUndefined ConnectionResult = ""
	ConnectionResultSuccess   ConnectionResult = "success"
	ConnectionResultFailure   ConnectionResult = "failure"
)

type ConnectionType

type ConnectionType string
const (
	ConnectionTypeUndefined ConnectionType = ""
	ConnectionTypeUDP       ConnectionType = "udp"
	ConnectionTypeTCP       ConnectionType = "tcp"
	ConnectionTypeTurn      ConnectionType = "turn"
)

type KeyResolver

type KeyResolver interface {
	Resolve(string)
	Reset()
}

type MimeType

type MimeType string
const (
	MimeTypeUndefined      MimeType = ""
	MimeTypeVideoH264      MimeType = "video/H264"
	MimeTypeVideoH265      MimeType = "video/H265"
	MimeTypeAudioOpus      MimeType = "audio/opus"
	MimeTypeAudioRed       MimeType = "audio/red"
	MimeTypeVideoVp8       MimeType = "video/VP8"
	MimeTypeVideoVp9       MimeType = "video/VP9"
	MimeTypeVideoAv1       MimeType = "video/AV1"
	MimeTypeAudioG722      MimeType = "audio/G722"
	MimeTypeAudioPcmu      MimeType = "audio/PCMU"
	MimeTypeAudioPcma      MimeType = "audio/PCMA"
	MimeTypeVideoRtx       MimeType = "video/rtx"
	MimeTypeVideoFlexfec   MimeType = "video/flexfec"
	MimeTypeVideoFlexfec03 MimeType = "video/flexfec-03"
	MimeTypeVideoUlpfec    MimeType = "video/ulpfec"
)

type ParticipantReporter

type ParticipantReporter interface {
	RegisterFunc(func(ts time.Time, tx ParticipantTx) bool)
	Tx(func(tx ParticipantTx))
	TxAt(time.Time, func(tx ParticipantTx))
	WithParticipantSession(id string) ParticipantSessionReporter
	WithDeferredParticipantSession() (ParticipantSessionReporter, KeyResolver)
	ParticipantTx
}

func NewNoopParticipantReporter

func NewNoopParticipantReporter() ParticipantReporter

type ParticipantReporterResolver

type ParticipantReporterResolver interface {
	Resolve(roomName livekit.RoomName, roomID livekit.RoomID, participant livekit.ParticipantIdentity, pID livekit.ParticipantID)
	Reset()
}

type ParticipantSessionReporter

type ParticipantSessionReporter interface {
	RegisterFunc(func(ts time.Time, tx ParticipantSessionTx) bool)
	Tx(func(tx ParticipantSessionTx))
	TxAt(time.Time, func(tx ParticipantSessionTx))
	WithTrack(id string) TrackReporter
	WithDeferredTrack() (TrackReporter, KeyResolver)
	ParticipantSessionTx
}

func NewNoopParticipantSessionReporter

func NewNoopParticipantSessionReporter() ParticipantSessionReporter

type ParticipantSessionTx

type ParticipantSessionTx interface {
	ReportRegion(v string)
	ReportClientConnectTime(v uint16)
	ReportConnectResult(v ConnectionResult)
	ReportConnectionType(v ConnectionType)
	ReportOs(v ClientOS)
	ReportDeviceModel(v string)
	ReportBrowser(v string)
	ReportSdkVersion(v string)
	ReportCountry(v uint16)
	ReportIspAsn(v uint32)
	ReportStartTime(v time.Time)
	ReportEndTime(v time.Time)
	ReportDuration(v uint16)
	ReportDurationMinutes(v uint8)
}

type ParticipantTx

type ParticipantTx interface{}

type ProjectReporter

type ProjectReporter interface {
	RegisterFunc(func(ts time.Time, tx ProjectTx) bool)
	Tx(func(tx ProjectTx))
	TxAt(time.Time, func(tx ProjectTx))
	WithRoom(name string) RoomReporter
	WithDeferredRoom() (RoomReporter, KeyResolver)
	ProjectTx
}

func NewNoopProjectReporter

func NewNoopProjectReporter() ProjectReporter

type ProjectTx

type ProjectTx interface{}

type Reporter

type Reporter interface {
	WithProject(id string) ProjectReporter
	WithDeferredProject() (ProjectReporter, KeyResolver)
}

func NewNoopReporter

func NewNoopReporter() Reporter

type Rollup

type Rollup string
const (
	RollupUndefined               Rollup = ""
	RollupProject                 Rollup = "project"
	RollupRoomSessionIndex        Rollup = "room_session_index"
	RollupParticipantIndex        Rollup = "participant_index"
	RollupParticipantSessionIndex Rollup = "participant_session_index"
	RollupParticipantSession      Rollup = "participant_session"
	RollupTrackIndex              Rollup = "track_index"
	RollupTrack                   Rollup = "track"
	RollupStartTimeIndex          Rollup = "start_time_index"
	RollupEndTimeIndex            Rollup = "end_time_index"
	RollupSessionIDIndex          Rollup = "session_id_index"
)

type RoomFeature added in v1.43.1

type RoomFeature uint16
const (
	IngressRoomFeature RoomFeature = 1 << iota
	EgressRoomFeature
	SIPRoomFeature
	AgentRoomFeature
	ConnectorRoomFeature
)

func RoomFeatureFromParticipantKind added in v1.43.1

func RoomFeatureFromParticipantKind(k livekit.ParticipantInfo_Kind) RoomFeature

func (RoomFeature) HasAgent added in v1.43.1

func (f RoomFeature) HasAgent() bool

func (RoomFeature) HasConnector added in v1.43.1

func (f RoomFeature) HasConnector() bool

func (RoomFeature) HasEgress added in v1.43.1

func (f RoomFeature) HasEgress() bool

func (RoomFeature) HasIngress added in v1.43.1

func (f RoomFeature) HasIngress() bool

func (RoomFeature) HasSIP added in v1.43.1

func (f RoomFeature) HasSIP() bool

type RoomReporter

type RoomReporter interface {
	RegisterFunc(func(ts time.Time, tx RoomTx) bool)
	Tx(func(tx RoomTx))
	TxAt(time.Time, func(tx RoomTx))
	WithRoomSession(id string) RoomSessionReporter
	WithDeferredRoomSession() (RoomSessionReporter, KeyResolver)
	RoomTx
}

func NewNoopRoomReporter

func NewNoopRoomReporter() RoomReporter

type RoomSessionReporter

type RoomSessionReporter interface {
	RegisterFunc(func(ts time.Time, tx RoomSessionTx) bool)
	Tx(func(tx RoomSessionTx))
	TxAt(time.Time, func(tx RoomSessionTx))
	WithParticipant(identity string) ParticipantReporter
	WithDeferredParticipant() (ParticipantReporter, KeyResolver)
	RoomSessionTx
}

func NewNoopRoomSessionReporter

func NewNoopRoomSessionReporter() RoomSessionReporter

type RoomSessionTx

type RoomSessionTx interface {
	ReportStartTime(v time.Time)
	ReportEndTime(v time.Time)
	ReportFeatures(v uint16)
}

type RoomTx

type RoomTx interface{}

type TrackKind

type TrackKind string
const (
	TrackKindUndefined TrackKind = ""
	TrackKindPub       TrackKind = "pub"
	TrackKindSub       TrackKind = "sub"
)

func TrackKindFromProto

func TrackKindFromProto(p livekit.StreamType) TrackKind

type TrackReporter

type TrackReporter interface {
	RegisterFunc(func(ts time.Time, tx TrackTx) bool)
	Tx(func(tx TrackTx))
	TxAt(time.Time, func(tx TrackTx))
	TrackTx
}

func NewNoopTrackReporter

func NewNoopTrackReporter() TrackReporter

type TrackSource

type TrackSource string
const (
	TrackSourceUndefined        TrackSource = ""
	TrackSourceCamera           TrackSource = "camera"
	TrackSourceMicrophone       TrackSource = "microphone"
	TrackSourceScreenShare      TrackSource = "screen_share"
	TrackSourceScreenShareAudio TrackSource = "screen_share_audio"
)

func TrackSourceFromProto

func TrackSourceFromProto(p livekit.TrackSource) TrackSource

type TrackTx

type TrackTx interface {
	ReportName(v string)
	ReportKind(v TrackKind)
	ReportType(v TrackType)
	ReportSource(v TrackSource)
	ReportMime(v MimeType)
	ReportLayer(v uint32)
	ReportDuration(v uint16)
	ReportFrames(v uint16)
	ReportSendBytes(v uint32)
	ReportRecvBytes(v uint32)
	ReportSendPackets(v uint32)
	ReportRecvPackets(v uint32)
	ReportPacketsLost(v uint32)
	ReportScore(v float32)
}

type TrackType

type TrackType string
const (
	TrackTypeUndefined TrackType = ""
	TrackTypeAudio     TrackType = "audio"
	TrackTypeVideo     TrackType = "video"
	TrackTypeData      TrackType = "data"
)

func TrackTypeFromProto

func TrackTypeFromProto(p livekit.TrackType) TrackType

Jump to

Keyboard shortcuts

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