Video API, REST: Video.GetPlayerURL
Generates a standard player URL for watching the video.
The URL respects the video's access rights and can include custom player parameters.
For videos with signed URL access, an expiration duration can be specified.
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 for which to generate a player URL. The maximum string length in characters is 50. |
Query parameters
|
Field |
Description |
|
params |
Optional player parameters to customize the playback experience. |
|
signedUrlExpirationDuration |
string (duration) For episodes with signed URL access, specifies how long the generated URL will be valid. |
VideoPlayerParams
|
Field |
Description |
|
mute |
boolean If true, the player will start with audio muted. |
|
autoplay |
boolean If true, the video will start playing automatically when the player loads. |
|
hidden |
boolean If true, the player interface controls will be hidden initially. |
Response
HTTP Code: 200 - OK
{
"playerUrl": "string",
"html": "string"
}
|
Field |
Description |
|
playerUrl |
string Direct URL to the video player. |
|
html |
string HTML embed code in iframe format that can be inserted into web pages. |