roomobs

package
v1.42.0 Latest Latest
Warning

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

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

Documentation

Overview

Code generated; DO NOT EDIT.

Index

Constants

View Source
const Version_LNTFR10 = 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"
	RollupProjectRoomIndex        Rollup = "project_room_index"
)

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)
}

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