Video API, REST: Video.GetPlayerURL
Written by
Updated at October 17, 2024
Returns url to the player.
HTTP request
GET https://video.api.cloud.yandex.net/video/v1/videos/{videoId}:getPlayerURL
Path parameters
Field |
Description |
videoId |
string Required field. ID of the video. |
Query parameters
Field |
Description |
params |
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
{
"playerUrl": "string",
"html": "string"
}
Field |
Description |
playerUrl |
string Direct link to the video. |
html |
string HTML embed code in Iframe format. |