Documentation
¶
Overview ¶
Code generated; DO NOT EDIT.
Index ¶
- Constants
- func DeferredParticipantReporter(p ProjectReporter) (ParticipantSessionReporter, ParticipantReporterResolver)
- func FormatBrowser(clientInfo *livekit.ClientInfo) string
- func FormatSDKVersion(clientInfo *livekit.ClientInfo) string
- func PackCountryCode(isoAlpha2 string) uint16
- func PackTrackLayer(x, y uint32) uint32
- func UnpackCountryCode(code uint16) (isoAlpha2 string)
- func UnpackTrackLayer(layer uint32) (x, y int)
- type ClientOS
- type ConnectionResult
- type ConnectionType
- type KeyResolver
- type MimeType
- type ParticipantReporter
- type ParticipantReporterResolver
- type ParticipantSessionReporter
- type ParticipantSessionTx
- type ParticipantTx
- type ProjectReporter
- type ProjectTx
- type Reporter
- type Rollup
- type RoomReporter
- type RoomSessionReporter
- type RoomSessionTx
- type RoomTx
- type TrackKind
- type TrackReporter
- type TrackSource
- type TrackTx
- type TrackType
Constants ¶
View Source
const Version_LNTFR10 = true
Variables ¶
This section is empty.
Functions ¶
func DeferredParticipantReporter ¶
func DeferredParticipantReporter(p ProjectReporter) (ParticipantSessionReporter, ParticipantReporterResolver)
func FormatBrowser ¶
func FormatBrowser(clientInfo *livekit.ClientInfo) string
func FormatSDKVersion ¶
func FormatSDKVersion(clientInfo *livekit.ClientInfo) string
func PackCountryCode ¶
func PackTrackLayer ¶
func UnpackCountryCode ¶
func UnpackTrackLayer ¶
Types ¶
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)
}
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)
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)
}
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)
}
func NewNoopProjectReporter ¶
func NewNoopProjectReporter() ProjectReporter
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)
}
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)
ReportStartTime(v time.Time)
ReportEndTime(v time.Time)
}
func NewNoopRoomSessionReporter ¶
func NewNoopRoomSessionReporter() RoomSessionReporter
type RoomSessionTx ¶
type TrackKind ¶
type TrackKind string
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))
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)
}
func NewNoopTrackReporter ¶
func NewNoopTrackReporter() TrackReporter
type TrackSource ¶
type TrackSource string
const ( TrackSourceUndefined TrackSource = "" TrackSourceCamera TrackSource = "camera" TrackSourceMicrophone TrackSource = "microphone" )
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)
}
Click to show internal directories.
Click to hide internal directories.