Video API, gRPC: EpisodeService.GetPlayerURL
Written by
Updated at February 21, 2025
Returns url to the player.
gRPC request
rpc GetPlayerURL (GetEpisodePlayerURLRequest) returns (GetEpisodePlayerURLResponse)
GetEpisodePlayerURLRequest
{
"episode_id": "string",
"params": {
"mute": "bool",
"autoplay": "bool",
"hidden": "bool"
},
"signed_url_expiration_duration": "google.protobuf.Duration"
}
Field |
Description |
episode_id |
string Required field. ID of the episode. |
params |
|
signed_url_expiration_duration |
Optional field, used to set custom url expiration duration for episodes with sign_url_access |
EpisodePlayerParams
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. |
GetEpisodePlayerURLResponse
{
"player_url": "string",
"html": "string"
}
Field |
Description |
player_url |
string Direct link to the video. |
html |
string HTML embed code in Iframe format. |