Get stream embed codes (player and chat)
get_stream_embed_codesCopy-paste HTML for putting a stream on a website: the video player (player.responsive, the default; player.iframe for a fixed size) and the live chat (chat.iframe), plus their plain URLs, and withChat: the player and the chat in one block that lays itself out (side by side on a wide screen, chat under the player on a phone). The same pair as the cabinet's Embed window, on the owner's own address. The iframe only loads on websites listed in the account's allowed embed domains (get_embed_domains / set_embed_domains; an empty list means every website) and only shows content the stream's access mode lets the viewer open (see create_stream). For "a radio station on the company website": create_stream, set_embed_domains with the company domain, then paste player.responsive (and chat.iframe) into the page. Follow embedRules in the answer (the rules of get_video_embed_code).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stream_id": "<stream_id>"
},
"name": "get_stream_embed_codes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Chat skin, default light: dark for a dark website, auto follows the visitor | |
| stream_id | Yes | Stream id |