ActiveRecording (#234)
* ActiveRecording * regenerate * update to 0.10.3 * 1.17
This commit is contained in:
+8
-11
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user