Video API, gRPC: VideoService.GetPlayerURL
Written by
Updated at October 17, 2024
Returns url to the player.
gRPC request
rpc GetPlayerURL (GetVideoPlayerURLRequest) returns (GetVideoPlayerURLResponse)
GetVideoPlayerURLRequest
{
"videoId": "string",
"params": {
"mute": "bool",
"autoplay": "bool",
"hidden": "bool"
}
}
Field |
Description |
videoId |
string ID of the video. |
params |
VideoPlayerParams
Field |
Description |
mute |
bool If true, a player will be muted by default. |
autoplay |
bool If true, playback will start automatically. |
hidden |
bool If true, a player interface will be hidden by default. |
GetVideoPlayerURLResponse
{
"playerUrl": "string",
"html": "string"
}
Field |
Description |
playerUrl |
string Direct link to the video. |
html |
string HTML embed code in Iframe format. |