Video API, gRPC: EpisodeService.GetPlayerURL
Статья создана
Обновлена 17 октября 2024 г.
Returns url to the player.
gRPC request
rpc GetPlayerURL (GetEpisodePlayerURLRequest) returns (GetEpisodePlayerURLResponse)
GetEpisodePlayerURLRequest
{
"episodeId": "string",
"params": {
"mute": "bool",
"autoplay": "bool",
"hidden": "bool"
}
}
Field |
Description |
episodeId |
string ID of the episode. |
params |
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
{
"playerUrl": "string",
"html": "string"
}
Field |
Description |
playerUrl |
string Direct link to the video. |
html |
string HTML embed code in Iframe format. |