fix recording URL requests

This commit is contained in:
David Colburn
2021-12-29 17:46:34 -08:00
parent 1fa194297f
commit 7b0db1f344
2 changed files with 5 additions and 3 deletions
+4 -1
View File
@@ -66,9 +66,12 @@ func (s *RecordingService) StartRecording(ctx context.Context, req *livekit.Star
Id: recordingID,
Active: true,
}
if template := req.Input.(*livekit.StartRecordingRequest_Template); template != nil {
switch template := req.Input.(type) {
case *livekit.StartRecordingRequest_Template:
ri.RoomName = template.Template.RoomName
}
logger.Debugw("recording started", "recordingID", recordingID)
s.telemetry.RecordingStarted(ctx, ri)