Updates a PlayerStreamer resource identified by a SID
A PlayerStreamer resource provides the ability to send a livestream to a JavaScript, iOS, or Android Player SDK.
Updates a PlayerStreamer resource identified by a SID.
Path parameters
-
The SID of the PlayerStreamer resource to update.
POST /v1/PlayerStreamers/{Sid}
curl \
-X POST https://media.twilio.com/v1/PlayerStreamers/{Sid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Status=ended'
Request example
{
"Status": "ended"
}
Request examples
{
"Status": "ended"
}
Response examples (200)
{
"account_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"ended_reason": "ended-via-api",
"links": {},
"max_duration": 42,
"sid": "string",
"status": "created",
"status_callback": "https://example.com",
"status_callback_method": "HEAD",
"url": "https://example.com",
"video": true
}
Response examples (200)
{
"account_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"ended_reason": "ended-via-api",
"links": {},
"max_duration": 42,
"sid": "string",
"status": "created",
"status_callback": "https://example.com",
"status_callback_method": "HEAD",
"url": "https://example.com",
"video": true
}