Video API, gRPC: EpisodeService.Create
Create episode.
gRPC request
rpc Create (CreateEpisodeRequest) returns (operation.Operation)
CreateEpisodeRequest
{
// Includes only one of the fields `streamId`, `lineId`
"streamId": "string",
"lineId": "string",
// end of the list of possible fields
"title": "string",
"description": "string",
"thumbnailId": "string",
"startTime": "google.protobuf.Timestamp",
"finishTime": "google.protobuf.Timestamp",
"dvrSeconds": "int64",
// Includes only one of the fields `publicAccess`, `authSystemAccess`
"publicAccess": "EpisodePublicAccessParams",
"authSystemAccess": "EpisodeAuthSystemAccessParams"
// end of the list of possible fields
}
Field |
Description |
streamId |
string ID of the stream. Includes only one of the fields |
lineId |
string ID of the line. Includes only one of the fields |
title |
string Episode title. |
description |
string Episode description. |
thumbnailId |
string ID of the thumbnail. |
startTime |
Episode start time. |
finishTime |
Episode finish time. |
dvrSeconds |
int64 Enables episode DVR mode. DVR seconds determines how many last seconds of the stream are available. possible values:
|
publicAccess |
Episode is available to everyone. Includes only one of the fields Episode access rights. |
authSystemAccess |
Checking access rights using the authorization system. Includes only one of the fields Episode access rights. |
EpisodePublicAccessParams
Field |
Description |
Empty |
EpisodeAuthSystemAccessParams
Field |
Description |
Empty |
operation.Operation
{
"id": "string",
"description": "string",
"createdAt": "google.protobuf.Timestamp",
"createdBy": "string",
"modifiedAt": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"episodeId": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"streamId": "string",
"lineId": "string",
"title": "string",
"description": "string",
"thumbnailId": "string",
"startTime": "google.protobuf.Timestamp",
"finishTime": "google.protobuf.Timestamp",
"dvrSeconds": "int64",
"visibilityStatus": "VisibilityStatus",
// Includes only one of the fields `publicAccess`, `authSystemAccess`
"publicAccess": "EpisodePublicAccessRights",
"authSystemAccess": "EpisodeAuthSystemAccessRights",
// end of the list of possible fields
"createdAt": "google.protobuf.Timestamp",
"updatedAt": "google.protobuf.Timestamp"
}
// 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 |
Creation timestamp. |
createdBy |
string ID of the user or service account who initiated the operation. |
modifiedAt |
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. |
CreateEpisodeMetadata
Field |
Description |
episodeId |
string ID of the episode. |
Episode
Field |
Description |
id |
string ID of the episode. |
streamId |
string ID of the stream. Optional, empty if the episode is linked to the line |
lineId |
string ID of the line. Optional, empty if the episode is linked to the stream |
title |
string Channel title. |
description |
string Channel description. |
thumbnailId |
string ID of the thumbnail. |
startTime |
Episode start time. |
finishTime |
Episode finish time. |
dvrSeconds |
int64 Enables episode DVR mode. DVR seconds determines how many last seconds of the stream are available. possible values:
|
visibilityStatus |
enum VisibilityStatus
|
publicAccess |
Episode is available to everyone. Includes only one of the fields Episode access rights. |
authSystemAccess |
Checking access rights using the authorization system. Includes only one of the fields Episode access rights. |
createdAt |
Time when episode was created. |
updatedAt |
Time of last episode update. |
EpisodePublicAccessRights
Field |
Description |
Empty |
EpisodeAuthSystemAccessRights
Field |
Description |
Empty |