Video API, REST: StreamLine.Update
Update stream line.
HTTP request
PATCH https://video.api.cloud.yandex.net/video/v1/streamLines/{streamLineId}
Path parameters
Field |
Description |
streamLineId |
string Required field. ID of the line. |
Body parameters
{
"fieldMask": "string",
"title": "string",
"thumbnailId": "string",
"labels": "string",
// Includes only one of the fields `rtmpPush`, `srtPush`, `rtmpPull`, `srtPull`, `tcpPull`, `rtspPull`
"rtmpPush": "object",
"srtPush": "object",
"rtmpPull": {
"url": "string"
},
"srtPull": {
"url": "string"
},
"tcpPull": {
"url": "string"
},
"rtspPull": {
"url": "string"
}
// end of the list of possible fields
}
Field |
Description |
fieldMask |
string (field-mask) A comma-separated names off ALL fields to be updated. If |
title |
string Line title. |
thumbnailId |
string ID of the thumbnail. |
labels |
string Custom labels as |
rtmpPush |
object RTMP push input type. Includes only one of the fields Video signal settings. |
srtPush |
object SRT push input type. Includes only one of the fields Video signal settings. |
rtmpPull |
RTMP pull input type. Includes only one of the fields Video signal settings. |
srtPull |
SRT pull input type. Includes only one of the fields Video signal settings. |
tcpPull |
TCP pull input type. Includes only one of the fields Video signal settings. |
rtspPull |
RTSP pull input type. Includes only one of the fields Video signal settings. |
RTMPPullParams
Field |
Description |
url |
string URL of a RTMP streaming server. |
SRTPullParams
Field |
Description |
url |
string URL of a SRT streaming server. |
TCPPullParams
Field |
Description |
url |
string URL of a TCP streaming server. |
RTSPPullParams
Field |
Description |
url |
string URL of a RTSP streaming server. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": {
"streamLineId": "string"
},
// Includes only one of the fields `error`, `response`
"error": {
"code": "integer",
"message": "string",
"details": [
"object"
]
},
"response": {
"id": "string",
"channelId": "string",
"title": "string",
"thumbnailId": "string",
// Includes only one of the fields `rtmpPush`, `srtPush`, `rtmpPull`, `srtPull`, `tcpPull`, `rtspPull`
"rtmpPush": {
"url": "string"
},
"srtPush": {
"url": "string"
},
"rtmpPull": {
"url": "string"
},
"srtPull": {
"url": "string"
},
"tcpPull": {
"url": "string"
},
"rtspPull": {
"url": "string"
},
// end of the list of possible fields
// Includes only one of the fields `manualLine`, `autoLine`
"manualLine": "object",
"autoLine": {
"status": "string"
},
// end of the list of possible fields
"createdAt": "string",
"updatedAt": "string",
"labels": "string"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
Field |
Description |
id |
string ID of the operation. |
description |
string Description of the operation. 0-256 characters long. |
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
createdBy |
string ID of the user or service account who initiated the operation. |
modifiedAt |
string (date-time) The time when the Operation resource was last modified. String in RFC3339 To work with values in this field, use the APIs described in the |
done |
boolean If the value is |
metadata |
Service-specific metadata associated with the operation. |
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
UpdateStreamLineMetadata
Field |
Description |
streamLineId |
string ID of the line. |
Status
The error result of the operation in case of failure or cancellation.
Field |
Description |
code |
integer (int32) Error code. An enum value of google.rpc.Code |
message |
string An error message. |
details[] |
object A list of messages that carry the error details. |
StreamLine
Entity that is responsible for the incoming video signal settings.
Field |
Description |
id |
string ID of the line. |
channelId |
string ID of the channel where the line was created. |
title |
string Line title. |
thumbnailId |
string ID of the thumbnail. |
rtmpPush |
RTMP push input type. Includes only one of the fields Video signal settings. |
srtPush |
SRT push input type. Includes only one of the fields Video signal settings. |
rtmpPull |
RTMP pull input type. Includes only one of the fields Video signal settings. |
srtPull |
SRT pull input type. Includes only one of the fields Video signal settings. |
tcpPull |
TCP pull input type. Includes only one of the fields Video signal settings. |
rtspPull |
RTSP pull input type. Includes only one of the fields Video signal settings. |
manualLine |
object Manual control of stream. Includes only one of the fields Line type. |
autoLine |
Automatic control of stream. Includes only one of the fields Line type. |
createdAt |
string (date-time) Time when line was created. String in RFC3339 To work with values in this field, use the APIs described in the |
updatedAt |
string (date-time) Time of last line update. String in RFC3339 To work with values in this field, use the APIs described in the |
labels |
string Custom labels as |
RTMPPushInput
Field |
Description |
url |
string RTMP server url. |
SRTPushInput
Field |
Description |
url |
string SRT server url. |
RTMPPullInput
Field |
Description |
url |
string RTMP url for receiving video signal. |
SRTPullInput
Field |
Description |
url |
string SRT url for receiving video signal. |
TCPPullInput
Field |
Description |
url |
string TCP url for receiving video signal. |
RTSPPullInput
Field |
Description |
url |
string RTSP url for receiving video signal. |
AutoLine
Auto line type.
Field |
Description |
status |
enum (AutoLineStatus) Status of auto line.
|