NAME

Twilio::Rest::Video::V1::Room::Participant::SubscribedTrack - The SubscribedTrack resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

for my $subscribed_track ($client->video->v1->rooms($room_sid)->participants($participant_sid)->subscribed_tracks->read({}, 20)) {
  ...
}
my $subscribed_track = $client->video->v1->rooms($room_sid)->participants($participant_sid)->subscribed_tracks($sid)->fetch;

DESCRIPTION

This file holds SubscribedTrackList, SubscribedTrackPage, SubscribedTrackContext and SubscribedTrackInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

SubscribedTrackList

Returned by $client->video->v1->rooms($room_sid)->participants($participant_sid)->subscribed_tracks. See also Twilio::ListResource.

read

my @records = $client->video->v1->rooms($room_sid)->participants($participant_sid)->subscribed_tracks->read(\%options, $limit, $page_size);

Returns a list of tracks that are subscribed for the participant. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->video->v1->rooms($room_sid)->participants($participant_sid)->subscribed_tracks->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)->participants($participant_sid)->subscribed_tracks->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)->participants($participant_sid)->subscribed_tracks->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->video->v1->rooms($room_sid)->participants($participant_sid)->subscribed_tracks->get_context($sid);

Returns a SubscribedTrackContext, and makes no request.

SubscribedTrackPage

A Twilio::Page of SubscribedTrackInstance objects.

records_key

build_instance

Used by Twilio::Page.

SubscribedTrackContext

Returned by $client->video->v1->rooms($room_sid)->participants($participant_sid)->subscribed_tracks($sid). It makes no request until one of these methods is called.

fetch

my $subscribed_track = $client->video->v1->rooms($room_sid)->participants($participant_sid)->subscribed_tracks($sid)->fetch;

Returns a single Track resource represented by track_sid. Note: This is one resource with the Video API that requires a SID, be Track Name on the subscriber side is not guaranteed to be unique. Returns a SubscribedTrackInstance.

SubscribedTrackInstance

See also Twilio::InstanceResource.

It has fetch, which work as they do on the context.

Its fields are:

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.

date_updated

The date and time in GMT when the resource was last updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

enabled

Whether the track is enabled.

kind

One of audio, video or data.

name

The track name. Must have no more than 128 characters and be unique among the participant's published tracks.

participant_sid

The SID of the participant that subscribes to the track.

publisher_sid

The SID of the participant that publishes the track.

room_sid

The SID of the room where the track is published.

sid

The unique string that we created to identify the RoomParticipantSubscribedTrack resource.

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.