Video API, REST: Playlist.GetPlayerURL
Статья создана
Обновлена 26 ноября 2024 г.
Returns player's url.
HTTP request
GET https://video.api.cloud.yandex.net/video/v1/playlists/{playlistId}:getPlayerURL
Path parameters
Field |
Description |
playlistId |
string Required field. ID of the playlist. |
Query parameters
Field |
Description |
params |
PlaylistPlayerParams
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 playlist. |
html |
string HTML embed code in Iframe format. |