ActiveRecording (#234)

* ActiveRecording

* regenerate

* update to 0.10.3

* 1.17
This commit is contained in:
David Colburn
2021-12-03 21:40:53 -08:00
committed by GitHub
parent c00d799ac6
commit c41384cd09
14 changed files with 136 additions and 33 deletions
+8 -11
View File
@@ -144,32 +144,29 @@ func (t *telemetryService) TrackUnsubscribed(ctx context.Context, participantID
})
}
func (t *telemetryService) RecordingStarted(ctx context.Context, recordingID string, req *livekit.StartRecordingRequest) {
func (t *telemetryService) RecordingStarted(ctx context.Context, ri *livekit.RecordingInfo) {
t.notifyEvent(ctx, &livekit.WebhookEvent{
Event: webhook.EventRecordingStarted,
RecordingInfo: &livekit.RecordingInfo{
Id: recordingID,
Request: req,
},
Event: webhook.EventRecordingStarted,
RecordingInfo: ri,
})
t.analytics.SendEvent(ctx, &livekit.AnalyticsEvent{
Type: livekit.AnalyticsEventType_RECORDING_STARTED,
Timestamp: timestamppb.Now(),
RecordingId: recordingID,
RecordingId: ri.Id,
})
}
func (t *telemetryService) RecordingEnded(ctx context.Context, res *livekit.RecordingResult) {
func (t *telemetryService) RecordingEnded(ctx context.Context, ri *livekit.RecordingInfo) {
t.notifyEvent(ctx, &livekit.WebhookEvent{
Event: webhook.EventRecordingFinished,
RecordingResult: res,
Event: webhook.EventRecordingFinished,
RecordingInfo: ri,
})
t.analytics.SendEvent(ctx, &livekit.AnalyticsEvent{
Type: livekit.AnalyticsEventType_RECORDING_ENDED,
Timestamp: timestamppb.Now(),
RecordingId: res.Id,
RecordingId: ri.Id,
})
}
+2 -2
View File
@@ -30,8 +30,8 @@ type TelemetryService interface {
TrackUnpublished(ctx context.Context, participantID string, track *livekit.TrackInfo, ssrc uint32)
TrackSubscribed(ctx context.Context, participantID string, track *livekit.TrackInfo)
TrackUnsubscribed(ctx context.Context, participantID string, track *livekit.TrackInfo)
RecordingStarted(ctx context.Context, recordingID string, req *livekit.StartRecordingRequest)
RecordingEnded(ctx context.Context, res *livekit.RecordingResult)
RecordingStarted(ctx context.Context, ri *livekit.RecordingInfo)
RecordingEnded(ctx context.Context, ri *livekit.RecordingInfo)
}
type telemetryService struct {