Video API, gRPC: VideoService.BatchGetPlayerURLs
Статья создана
Обновлена 24 апреля 2025 г.
Batch get player urls.
gRPC request
rpc BatchGetPlayerURLs (BatchGetVideoPlayerURLsRequest) returns (BatchGetVideoPlayerURLsResponse)
BatchGetVideoPlayerURLsRequest
{
"channel_id": "string",
"video_ids": [
"string"
],
"params": {
"mute": "bool",
"autoplay": "bool",
"hidden": "bool"
},
"signed_url_expiration_duration": "google.protobuf.Duration"
}
Field |
Description |
channel_id |
string Required field. ID of the channel. |
video_ids[] |
string List of requested video IDs. |
params |
|
signed_url_expiration_duration |
Optional field, used to set custom url expiration duration for videos with sign_url_access |
VideoPlayerParams
Field |
Description |
mute |
bool If true, a player will be muted by default. |
autoplay |
bool If true, playback will start automatically. |
hidden |
bool If true, a player interface will be hidden by default. |
BatchGetVideoPlayerURLsResponse
{
"player_urls": [
"string"
]
}
Field |
Description |
player_urls[] |
string |