Video API, REST: Video.getPlayerURL
Статья создана
Обновлена 13 сентября 2024 г.
Returns url to the player.
HTTP request
GET https://video.api.cloud.yandex.net/video/v1/videos/{videoId}:getPlayerURL
Path parameters
Parameter | Description |
---|---|
videoId | ID of the video. |
Query parameters
Parameter | Description |
---|---|
params.mute | If true, a player will be muted by default. |
params.autoplay | If true, playback will start automatically. |
params.hidden | If true, a player interface will be hidden by default. |
Response
HTTP Code: 200 - OK
{
"playerUrl": "string",
"html": "string"
}
Field | Description |
---|---|
playerUrl | string Direct link to the video. |
html | string HTML embed code in Iframe format. |