MCPcopy
hub / github.com/livekit/livekit / TrackSubscribeRTPStats

Method TrackSubscribeRTPStats

pkg/telemetry/events.go:467–485  ·  view source on GitHub ↗
(
	ctx context.Context,
	roomID livekit.RoomID,
	roomName livekit.RoomName,
	participantID livekit.ParticipantID,
	trackID livekit.TrackID,
	mimeType mime.MimeType,
	stats *livekit.RTPStats,
)

Source from the content-addressed store, hash-verified

465}
466
467func (t *telemetryService) TrackSubscribeRTPStats(
468 ctx context.Context,
469 roomID livekit.RoomID,
470 roomName livekit.RoomName,
471 participantID livekit.ParticipantID,
472 trackID livekit.TrackID,
473 mimeType mime.MimeType,
474 stats *livekit.RTPStats,
475) {
476 t.enqueue(func() {
477 room := toMinimalRoomProto(roomID, roomName)
478 ev := newRoomEvent(livekit.AnalyticsEventType_TRACK_SUBSCRIBE_STATS, room)
479 ev.ParticipantId = string(participantID)
480 ev.TrackId = string(trackID)
481 ev.Mime = mimeType.String()
482 ev.RtpStats = stats
483 t.SendEvent(ctx, ev)
484 })
485}
486
487func (t *telemetryService) NotifyEgressEvent(ctx context.Context, event string, info *livekit.EgressInfo) {
488 opts := egress.GetEgressNotifyOptions(info)

Callers

nothing calls this directly

Calls 5

enqueueMethod · 0.95
toMinimalRoomProtoFunction · 0.85
newRoomEventFunction · 0.85
SendEventMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected