Egress (#455)
* egress updates * pass egressInfo to delete * update typefakes * export StartEgress * update protocol * new rpc, rename stores * add json tag * update tests * update protocol
This commit is contained in:
@@ -247,3 +247,31 @@ func (t *telemetryServiceInternal) ParticipantActive(ctx context.Context, partic
|
||||
ClientMeta: clientMeta,
|
||||
})
|
||||
}
|
||||
|
||||
func (t *telemetryServiceInternal) EgressStarted(ctx context.Context, info *livekit.EgressInfo) {
|
||||
t.notifyEvent(ctx, &livekit.WebhookEvent{
|
||||
Event: webhook.EventEgressStarted,
|
||||
EgressInfo: info,
|
||||
})
|
||||
|
||||
t.analytics.SendEvent(ctx, &livekit.AnalyticsEvent{
|
||||
Type: livekit.AnalyticsEventType_EGRESS_STARTED,
|
||||
Timestamp: timestamppb.Now(),
|
||||
EgressId: info.EgressId,
|
||||
RoomId: info.RoomId,
|
||||
})
|
||||
}
|
||||
|
||||
func (t *telemetryServiceInternal) EgressEnded(ctx context.Context, info *livekit.EgressInfo) {
|
||||
t.notifyEvent(ctx, &livekit.WebhookEvent{
|
||||
Event: webhook.EventEgressEnded,
|
||||
EgressInfo: info,
|
||||
})
|
||||
|
||||
t.analytics.SendEvent(ctx, &livekit.AnalyticsEvent{
|
||||
Type: livekit.AnalyticsEventType_EGRESS_ENDED,
|
||||
Timestamp: timestamppb.Now(),
|
||||
EgressId: info.EgressId,
|
||||
RoomId: info.RoomId,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user