Video API, gRPC: PlaylistService.GetPlayerURL
Written by
Updated at November 26, 2024
Returns player's url.
gRPC request
rpc GetPlayerURL (GetPlaylistPlayerURLRequest) returns (GetPlaylistPlayerURLResponse)
GetPlaylistPlayerURLRequest
{
"playlist_id": "string",
"params": {
"mute": "bool",
"autoplay": "bool",
"hidden": "bool"
}
}
Field |
Description |
playlist_id |
string Required field. ID of the playlist. |
params |
PlaylistPlayerParams
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. |
GetPlaylistPlayerURLResponse
{
"player_url": "string",
"html": "string"
}
Field |
Description |
player_url |
string Direct link to the playlist. |
html |
string HTML embed code in Iframe format. |