Video API, REST: Video.BatchGetPlayerURLs
Статья создана
Обновлена 24 апреля 2025 г.
Batch get player urls.
HTTP request
POST https://video.api.cloud.yandex.net/video/v1/videos:batchGetPlayerURLs
Body parameters
{
"channelId": "string",
"videoIds": [
"string"
],
"params": {
"mute": "boolean",
"autoplay": "boolean",
"hidden": "boolean"
},
"signedUrlExpirationDuration": "string"
}
Field |
Description |
channelId |
string Required field. ID of the channel. |
videoIds[] |
string List of requested video IDs. |
params |
|
signedUrlExpirationDuration |
string (duration) Optional field, used to set custom url expiration duration for videos with sign_url_access |
VideoPlayerParams
Field |
Description |
mute |
boolean If true, a player will be muted by default. |
autoplay |
boolean If true, playback will start automatically. |
hidden |
boolean If true, a player interface will be hidden by default. |
Response
HTTP Code: 200 - OK
{
"playerUrls": [
"string"
]
}
Field |
Description |
playerUrls[] |
string |