Video API, REST: Episode.getPlayerURL
Статья создана
Обновлена 13 сентября 2024 г.
Returns url to the player.
HTTP request
GET https://video.api.cloud.yandex.net/video/v1/episodes/{episodeId}:getPlayerUrl
Path parameters
Parameter | Description |
---|---|
episodeId | ID of the episode. |
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. |