1

I see the docs on accessing recordings (https://www.twilio.com/docs/api/video/recordings-resource), but I don't see any examples of actually setting up the recordings. Thanks.

EDIT: I see default settings can be configured here (https://www.twilio.com/console/video/configure), but how does one do this programmatically?

1 Answer 1

1

Twilio developer evangelist here.

To use recording in Twilio Video you need to create a group room via the REST API and set the RecordParticipantsOnConnect parameter to true. The minimal code for this is:

client = Twilio::REST::Client.new(api_key_sid, api_key_secret)

group_room = client.video.rooms.create(
  unique_name: 'RecordedRoom',
  type: 'group',
  record_participants_on_connect: true
)

You'd then need to join your participants to the room named "RecordedRoom" and they will be recorded.

Let me know if that helps at all.

Sign up to request clarification or add additional context in comments.

7 Comments

From one Phil to another, thanks. A follow-up question: how would I mute one user's tracks? I see how to do this for the Conversation API (twilio.com/docs/guides/video/tracks#mute-one), but not sure what changes for the Rooms API.
Hey Phil! To mute tracks you need to disable them. You can then enable the track again to unmute.
Great - thanks, @philnash. One more follow-up question on this, relating to status callbacks: stackoverflow.com/questions/46179234/…
Hey Phil, I'm actually having trouble— I put up an SO post with my code. That's here (stackoverflow.com/questions/47148499/…).
Sorry, I realize I linked to the wrong SO post— the right one's here: stackoverflow.com/questions/47148499/…
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.