NAME

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

SYNOPSIS

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

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

DESCRIPTION

This file holds PublishedTrackList, PublishedTrackPage, PublishedTrackContext and PublishedTrackInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

PublishedTrackList

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

read

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

Returns a list of tracks associated with a given Participant. Only currently Published Tracks are in the list resource. 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)->published_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)->published_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)->published_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)->published_tracks->get_context($sid);

Returns a PublishedTrackContext, and makes no request.

PublishedTrackPage

A Twilio::Page of PublishedTrackInstance objects.

records_key

build_instance

Used by Twilio::Page.

PublishedTrackContext

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

fetch

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

Returns a single Track resource represented by TrackName or SID. Returns a PublishedTrackInstance.

PublishedTrackInstance

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 be no more than 128 characters, and be unique among the participant's published tracks.

participant_sid

The SID of the Participant resource with the published track.

room_sid

The SID of the Room resource where the track is published.

sid

The unique string that we created to identify the RoomParticipantPublishedTrack 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.