0

How to get a correct video room record from Twilio. I'm using C# SDK

Creating room: var room = await RoomResource.CreateAsync(null, RoomResource.RoomTypeEnum.GroupSmall, name, recordParticipantsOnConnect: true);

Then I have room sid in database. And I want to get record of meeting. I found in documentation link for recordings https://video.twilio.com/v1/Rooms/{RoomSId}/Recordings. But how to get that from C# SDK I don't want to parse it manually.

And second. I need to allow user to watch meeting record. I don't need to separate record for each parcipiants and tracks. Is there a simple way how to get one video for meeting?

Peter Pollen
  • 83
  • 1
  • 6
  • https://www.twilio.com/docs/video/api/recordings-resource – Chetan Jul 18 '21 at 08:45
  • @ChetanRanpariya I saw that docs. But where should I found RecordingSid? And also it's not easy to connect all recordings to one video. I need something like Teams meeting recording – Peter Pollen Jul 18 '21 at 15:01
  • https://www.twilio.com/docs/video/api/recordings-resource#recordings-list-resource – Chetan Jul 19 '21 at 01:28

1 Answers1

0

Twilio developer evangelist here.

The Twilio documentation normally has examples in your SDK of choice. For example, if you have a room SID you can retrieve the recordings for a room with the following:

TwilioClient.Init(accountSid, authToken);

var groupingSid = new List<string> {
  ROOM_SID
};

var recordings = RecordingResource.Read(groupingSid: groupingSid, limit: 20);

There are recordings per-participant in a room as these are just the raw recordings. If you want a single video that can be watched by someone else, you will need to either stitch the recordings together or you can use the Twilio Video Compositions API. Check out the Compositions API documentation for all the details on how to create a single viewable video.

philnash
  • 70,667
  • 10
  • 60
  • 88