Video API, gRPC: EpisodeService.List
List episodes for stream or line.
gRPC request
rpc List (ListEpisodesRequest) returns (ListEpisodesResponse)
ListEpisodesRequest
{
// Includes only one of the fields `stream_id`, `line_id`
"stream_id": "string",
"line_id": "string",
// end of the list of possible fields
"page_size": "int64",
"page_token": "string",
"order_by": "string",
"filter": "string"
}
Field |
Description |
stream_id |
string ID of the stream. Includes only one of the fields |
line_id |
string ID of the line. Includes only one of the fields |
page_size |
int64 The maximum number of the results per page to return. Default value: 100. |
page_token |
string Page token for getting the next page of the result. |
order_by |
string By which column the listing should be ordered and in which direction, |
filter |
string Filter expression that filters resources listed in the response. |
ListEpisodesResponse
{
"episodes": [
{
"id": "string",
"stream_id": "string",
"line_id": "string",
"title": "string",
"description": "string",
"thumbnail_id": "string",
"start_time": "google.protobuf.Timestamp",
"finish_time": "google.protobuf.Timestamp",
"dvr_seconds": "int64",
"visibility_status": "VisibilityStatus",
// Includes only one of the fields `public_access`, `auth_system_access`, `sign_url_access`
"public_access": "EpisodePublicAccessRights",
"auth_system_access": "EpisodeAuthSystemAccessRights",
"sign_url_access": "EpisodeSignURLAccessRights",
// end of the list of possible fields
"created_at": "google.protobuf.Timestamp",
"updated_at": "google.protobuf.Timestamp"
}
],
"next_page_token": "string"
}
Field |
Description |
episodes[] |
List of episodes for specific parent_id. |
next_page_token |
string Token for getting the next page. |
Episode
Field |
Description |
id |
string ID of the episode. |
stream_id |
string ID of the stream. Optional, empty if the episode is linked to the line |
line_id |
string ID of the line. Optional, empty if the episode is linked to the stream |
title |
string Channel title. |
description |
string Channel description. |
thumbnail_id |
string ID of the thumbnail. |
start_time |
Episode start time. |
finish_time |
Episode finish time. |
dvr_seconds |
int64 Enables episode DVR mode. DVR seconds determines how many last seconds of the stream are available. possible values:
|
visibility_status |
enum VisibilityStatus
|
public_access |
Episode is available to everyone. Includes only one of the fields Episode access rights. |
auth_system_access |
Checking access rights using the authorization system. Includes only one of the fields Episode access rights. |
sign_url_access |
Checking access rights using url's signature. Includes only one of the fields Episode access rights. |
created_at |
Time when episode was created. |
updated_at |
Time of last episode update. |
EpisodePublicAccessRights
Field |
Description |
Empty |
EpisodeAuthSystemAccessRights
Field |
Description |
Empty |
EpisodeSignURLAccessRights
Field |
Description |
Empty |