Video API, REST: Episode.GetPlayerURL
Статья создана
Обновлена 17 октября 2024 г.
Returns url to the player.
HTTP request
GET https://video.api.yandexcloud.kz/video/v1/episodes/{episodeId}:getPlayerUrl
Path parameters
Field |
Description |
episodeId |
string Required field. ID of the episode. |
Query parameters
Field |
Description |
params |
EpisodePlayerParams
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
{
"playerUrl": "string",
"html": "string"
}
Field |
Description |
playerUrl |
string Direct link to the video. |
html |
string HTML embed code in Iframe format. |