This content originally appeared on Twilio Blog and was authored by Ander Telleria
Choose your own recording adventure! Decide when and who you want to record from a Twilio Video Room.
Back in March of 2020, we introduced enhanced recording features which include the ability to compose the media files of a Room recording into a high-quality, custom layout that matches a specific use case, public key encryption, and external storage. Since then, we have seen how a large number of companies have benefited from these new features including use cases such as capturing calls with clients, analyzing and improving negotiation sessions, exams proctoring, performing historical reviews of doctor-patient sessions, and more.
But, what happens when part of the conversation cannot or must not be recorded? What about when a customer shares some confidential data, or if a customer just wants to record the audio of a participant, or if they want to start the recording in the middle of the session, or if they are only interested in the recording of the candidate during an interview?
Up until now, when using Twilio Video Recordings, developers had to initiate the recording prior to the start of the room. At Twilio, we are always listening to our customers and looking for ways to improve. Based on your feedback, we have released a new feature, Video Recording Rules API.
Why we built this feature
Before this release, If a developer wanted to customize their recordings, they had two options. In the best-case scenario, the problem could be solved by adding post-production processes to the recording, which is not scalable due to required additional investments in third-party software and developer time. In the worst-case scenario you could be storing sensitive information that could jeopardize your security reputation as a company.
These are some situations where, as a developer, you do not want to record certain parts of your video session. A few of those include:
- A session in a country which requires user consent before recording a call. For this case, you want to start the recording only after a user has given you their consent.
- A discussion between an attorney and their client that could span over longer periods of time. For this case, a call does not need to be recorded as a whole and only selective parts need to be recorded for legal purposes.
- A virtual learning session with an instructor and a number of students. A session like this usually does not require all participants to be recorded.
- A telehealth session between a doctor and a patient. Telehealth calls may have sections where detailed personal medical discussions are conducted, and the patient may not want that to be recorded.
Introducing the Video Recording Rules API
Twilio Video Recording Rules API is a feature that allows developers to select and record individual tracks on-demand while a room is already in progress. This means that during a video room session, developers can determine:
- When to start the recording.
- When to pause and resume the recording.
- When to stop the recording.
- What participants to record.
- What track of which participant to record. You can choose between the video track, the audio track or both.
This enables companies to better control their recordings and navigate local regulations. As Gene Podolyak, Co-Founder of Meetter put it, "New recording control API was super easy to integrate and it improved our compliance with GDPR.”
It also provides organizations with flexibility around who they record, which in turn helps manage costs. “The ability to record an individual user is a vital function for FitSwarm, improving efficiency and reducing cost.” said Tony Beim, Founder of Fitswarm, a fitness and well-being company.
How does this new feature work?
With Recording Rules API, developers are provided with a list of rules that can be specified at any point in time during the video session using the new Recording Rules URI. This set of rules can be updated anytime during the life of the room in order to include or exclude track(s) from recording:
Resource URI
/v1/Rooms/{RoomNameOrSid}/RecordingRules/
HTTP POST
A set of rules applied to start and/or stop recording tracks based on the kind of track and the identity of the track publisher.
Recording Rule JSON fields
Field |
Description |
|
type: |
|
Filter_name must be one of the following:
|
Sample Use Cases
Here’s a couple examples of how you can benefit from this new feature:
Scenario A: A contract is being negotiated through a Video Session. You want to record all the negotiation apart from the signing of the contracts. At that moment, your customer wants to stop the recording.
curl -X POST 'https://video.twilio.com/v1/Rooms/RMXXXX/RecordingRules' \
-u 'AKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_api_key_secret' \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Rules=[{"type": "exclude", "all": "true"}]'
After the signing has happened, your customer wants to resume the recording.
curl -X POST 'https://video.twilio.com/v1/Rooms/RMXXXX/RecordingRules' \
-u 'AKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_api_key_secret' \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Rules=[{"type": "include", "all": "true"}]'
Scenario B: A session is being hosted by Alice and John but only Alice is officially presenting so John’s recordings are not needed. We don’t want to record attendants' videos either because they are working from home, but we do want to record their audio tracks in order to capture the discussion.
curl -X POST 'https://video.twilio.com/v1/Rooms/RMXXXX/RecordingRules' \
-u 'AKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_api_key_secret' \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Rules=[{"type": "include", "publisher ": "Alice"},
{"type": "include", "kind": "audio"},
{"type": "exclude", "publisher": "John"}]'
Pricing
Recordings are priced at $0.004 per participant minute. Before Recording Rules API, all participants in a video session were recorded for the full time. With Recording Rules API you only record and store the participants and portions of the session that you want, so you can reduce your recording and storage bill.
Try the Recording Rules API today
Recording Rules API provides developers with full flexibility to make ad-hoc recording decisions during the duration of the room session. To learn more, visit the Recording Rules API documentation.
We can’t wait to see what you build!
Ander Telleria is a Staff Product Manager at Twilio with over a decade of experience envisioning and delivering worldwide software products. When he’s not designing new business models or products in his lab, he will probably be traveling and getting to know new cultures around the globe.
This content originally appeared on Twilio Blog and was authored by Ander Telleria
Ander Telleria | Sciencx (2021-03-23T09:37:20+00:00) Take control of your recordings with the new Twilio Video Recording Rules API, now generally available. Retrieved from https://www.scien.cx/2021/03/23/take-control-of-your-recordings-with-the-new-twilio-video-recording-rules-api-now-generally-available/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.