The Published Track resource is a subresource of a Participant instance resource. It represents the Tracks a Participant is currently publishing to the Room.
Using the Published Track resource, you can query tracks published to a Room. You can also get a list of Tracks associated with a given Participant.
1/v1/Rooms/{RoomNameOrSid}/Participants/{ParticipantIdentityOrSid}/PublishedTracks/{TrackNameOrSid}2
The unique string that we created to identify the RoomParticipantPublishedTrack resource.
^MT[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Participant resource with the published track.
^PA[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Room resource where the track is published.
^RM[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The track name. Must be no more than 128 characters, and be unique among the participant's published tracks.
The date and time in GMT when the resource was created specified in ISO 8601 format.
The date and time in GMT when the resource was last updated specified in ISO 8601 format.
The track type. Can be: audio
, video
or data
.
audio
video
data
The absolute URL of the resource.
Returns a single Track resource represented by TrackNameOrSid
.
1// NOTE: This example uses the next generation Twilio helper library - for more2// information on how to download and install this version, visit3// https://www.twilio.com/docs/libraries/node4var apiKeySid = 'SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';5var apiKeySecret = 'your_api_key_secret';6var accountSid = process.env.TWILIO_ACCOUNT_SID;7var Twilio = require('twilio');89var client = new Twilio(apiKeySid, apiKeySecret, {accountSid: accountSid});1011client.video.rooms('DailyStandup').participants.get('Alice')12.publishedTracks.get('Camera')13.fetch()14.then(publishedTrack => {15console.log(publishedTrack.kind);16});
1{2"kind": "video",3"name": "Camera",4"date_updated": null,5"sid": "MTXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",6"enabled": true,7"url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PublishedTracks/MTXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",8"date_created": "2017-12-13T23:46:36Z",9"room_sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",10"participant_sid": "PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"11}
Not supported.
1/v1/Rooms/{RoomNameOrSid}/Participants/{ParticipantIdentityOrSid}/PublishedTracks/2
Returns a list of tracks associated with a given Participant. The list includes paging information. Only currently
Published Tracks are in the list resource.
Note: No filters supported.
1// NOTE: This example uses the next generation Twilio helper library - for more2// information on how to download and install this version, visit3// https://www.twilio.com/docs/libraries/node4var apiKeySid = 'SKXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';5var apiKeySecret = 'your_api_key_secret';6var accountSid = process.env.TWILIO_ACCOUNT_SID;7var Twilio = require('twilio');89var client = new Twilio(apiKeySid, apiKeySecret, {accountSid: accountSid});1011client.video.rooms('DailyStandup')12.participants.get('Alice')13.publishedTracks.list()14.then(publishedTracks => {15publishedTracks.forEach(publishedTrack => console.log(publishedTrack.sid))16});
1{2"meta": {3"page": 0,4"page_size": 50,5"first_page_url": "https://video.twilio.com/v1/Rooms/DailyStandup/Participants/ZestyYolandaZimmerman/PublishedTracks?PageSize=50&Page=0",6"previous_page_url": null,7"url": "https://video.twilio.com/v1/Rooms/DailyStandup/Participants/ZestyYolandaZimmerman/PublishedTracks?PageSize=50&Page=0",8"next_page_url": null,9"key": "published_tracks"10},11"published_tracks": [{12"kind": "audio",13"name": "moderator-audio",14"date_updated": null,15"sid": "MTXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",16"enabled": true,17"url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PublishedTracks/MTXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",18"date_created": "2017-12-13T23:46:36Z",19"room_sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",20"participant_sid": "PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"21}, {22"kind": "video",23"name": "moderator-camera",24"date_updated": null,25"sid": "MTXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",26"enabled": true,27"url": "https://video.twilio.com/v1/Rooms/RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Participants/PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/PublishedTracks/MTXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",28"date_created": "2017-12-13T23:46:36Z",29"room_sid": "RMXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",30"participant_sid": "PAXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"31}]32}