NAME
Twilio::Rest::Video::V1::Room::RoomRecording - The RoomRecording resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $room_recording ($client->video->v1->rooms($room_sid)->recordings->read({}, 20)) {
...
}
my $room_recording = $client->video->v1->rooms($room_sid)->recordings($sid)->fetch;
$client->video->v1->rooms($room_sid)->recordings($sid)->delete;
DESCRIPTION
Single-track, single-media room recordings
This file holds RoomRecordingList, RoomRecordingPage, RoomRecordingContext and RoomRecordingInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
RoomRecordingList
Returned by $client->video->v1->rooms($room_sid)->recordings. See also Twilio::ListResource.
read
my @records = $client->video->v1->rooms($room_sid)->recordings->read(\%options, $limit, $page_size);
Returns the records as a list, fetching as many pages as it needs.
The options are:
date_created_after-
Read only recordings that started on or after this ISO 8601 datetime with time zone. A string, or an object with an
epochmethod. See "iso8601_date_time" in Twilio::Serialize. date_created_before-
Read only Recordings that started before this ISO 8601 datetime with time zone. A string, or an object with an
epochmethod. See "iso8601_date_time" in Twilio::Serialize. source_sid-
Read only the recordings that have this
source_sid. status-
Read only the recordings with this status. Can be:
processing,completed, ordeleted. One ofprocessing,completed,deletedorfailed.
stream
my $stream = $client->video->v1->rooms($room_sid)->recordings->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->video->v1->rooms($room_sid)->recordings->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->video->v1->rooms($room_sid)->recordings->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->video->v1->rooms($room_sid)->recordings->get_context($sid);
Returns a RoomRecordingContext, and makes no request.
RoomRecordingPage
A Twilio::Page of RoomRecordingInstance objects.
records_key
build_instance
Used by Twilio::Page.
RoomRecordingContext
Returned by $client->video->v1->rooms($room_sid)->recordings($sid). It makes no request until one of these methods is called.
fetch
my $room_recording = $client->video->v1->rooms($room_sid)->recordings($sid)->fetch;
Returns a RoomRecordingInstance.
delete
$client->video->v1->rooms($room_sid)->recordings($sid)->delete;
Returns true.
RoomRecordingInstance
See also Twilio::InstanceResource.
It has fetch and delete, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the RoomRecording resource.
- codec
-
One of
VP8,H264,OPUSorPCMU. - container_format
-
One of
mkaormkv. - date_created
-
The date and time in GMT when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- duration
-
The duration of the recording rounded to the nearest second. Sub-second duration tracks have a
durationof 1 second - grouping_sids
-
A list of SIDs related to the Recording. Includes the
room_sidandparticipant_sid. - links
-
The URLs of related resources.
- media_external_location
-
The URL of the media file associated with the recording when stored externally. See External S3 Recordings for more details.
- offset
-
The time in milliseconds elapsed between an arbitrary point in time, common to all group rooms, and the moment when the source room of this track started. This information provides a synchronization mechanism for recordings belonging to the same room.
- room_sid
-
The SID of the Room resource the recording is associated with.
- sid
-
The unique string that we created to identify the RoomRecording resource.
- size
-
The size of the recorded track in bytes.
- source_sid
-
The SID of the recording source. For a Room Recording, this value is a
track_sid. - status
-
One of
processing,completed,deletedorfailed. - track_name
-
The name that was given to the source track of the recording. If no name is given, the
source_sidis used. - type
-
One of
audio,videoordata. - url
-
The absolute URL of the resource.
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.