Video API, gRPC: StreamService.PerformAction
Perform an action on the episode.
gRPC request
rpc PerformAction (PerformStreamActionRequest) returns (operation.Operation)
PerformStreamActionRequest
{
"stream_id": "string",
// Includes only one of the fields `publish`, `stop`
"publish": "PublishAction",
"stop": "StopAction"
// end of the list of possible fields
}
Field |
Description |
stream_id |
string Required field. ID of the stream. |
publish |
Includes only one of the fields |
stop |
Includes only one of the fields |
PublishAction
Field |
Description |
Empty |
StopAction
Field |
Description |
Empty |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"stream_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"channel_id": "string",
"line_id": "string",
"title": "string",
"description": "string",
"thumbnail_id": "string",
"status": "StreamStatus",
"start_time": "google.protobuf.Timestamp",
"publish_time": "google.protobuf.Timestamp",
"finish_time": "google.protobuf.Timestamp",
// Includes only one of the fields `on_demand`, `schedule`
"on_demand": "OnDemand",
"schedule": {
"start_time": "google.protobuf.Timestamp",
"finish_time": "google.protobuf.Timestamp"
},
// end of the list of possible fields
"created_at": "google.protobuf.Timestamp",
"updated_at": "google.protobuf.Timestamp",
"labels": "map<string, 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. |
created_at |
Creation timestamp. |
created_by |
string ID of the user or service account who initiated the operation. |
modified_at |
The time when the Operation resource was last modified. |
done |
bool 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. |
PerformStreamActionMetadata
Field |
Description |
stream_id |
string ID of the stream. |
Stream
Field |
Description |
id |
string ID of the stream. |
channel_id |
string ID of the channel where the stream was created. |
line_id |
string ID of the line to which stream is linked. |
title |
string Stream title. |
description |
string Stream description. |
thumbnail_id |
string ID of the thumbnail. |
status |
enum StreamStatus Stream status.
|
start_time |
Stream start time. |
publish_time |
Stream publish time. Time when stream switched to ONAIR status. |
finish_time |
Stream finish time. |
on_demand |
On demand stream. It starts immediately when a signal appears. Includes only one of the fields Stream type. |
schedule |
Schedule stream. Determines when to start receiving the signal or finish time. Includes only one of the fields Stream type. |
created_at |
Time when stream was created. |
updated_at |
Time of last stream update. |
labels |
object (map<string, string>) Custom labels as |
OnDemand
If "OnDemand" is used, client should start and finish explicitly.
Field |
Description |
Empty |
Schedule
If "Schedule" is used, stream automatically start and finish at this time.
Field |
Description |
start_time |
|
finish_time |