Методы: info | list | create | update | record | delete | restream
Получение информации о трансляции по его коду.
Входные параметры
Обязательные параметры:
Выходные параметры
Пример запроса:
https://boomstream.com/api/live/info?apikey=[API_KEY]&code=xxxxxxxx
Пример ответа:
<Response> <Title>Promo</Title> <Code>xxxxxxxx</Code> <PublishKey>xxxxxxxx</PublishKey> <EncoderLink> https://boomstream.com/api/live/encoder?hash=xxxxxxxxxxxxxxxxx&code=xxxxxxxx </EncoderLink> <OnlineStatus>True</OnlineStatus> <RecordStatus>True</RecordStatus> <Concurrent>10</Concurrent> <CreationDate>2015-01-29 15:05:58</CreationDate> <StartAt>2022-04-27 14:22:00</StartAt> <Timezone>Europe/Oslo</Timezone> <Type>live</Type> <PlayerCode><iframe width="{{width}}" height="{{height}}" src="https://boomstream.com/player.html?code=xxxxxxxx" frameborder="0" scrolling="no"></iframe></PlayerCode> <Poster> <Code>xxxxxxxx-m3</Code> <Width>1920</Width> <Height>1080</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url> </Poster> <Screenshots> <Item> <Code>xxxxxxxx-m3</Code> <Width>1920</Width> <Height>1080</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url> </Item> </Screenshots> <Recordings> <Item> <Title>Promo recording</Title> <Code>xxxxxxxx</Code> <Type>video</Type> <Width>640</Width> <Height>352</Height> <MediaStatus>Done</MediaStatus> <Duration>5</Duration> <PlayerCode>&lt;iframe width=&quot;{{width}}&quot; height=&quot;{{height}}&quot; src=&quot;https://play.boomstream.com/xxxxxxxx&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot; allowfullscreen&gt;&lt;/iframe&gt;</PlayerCode> <DownloadLink>https://bs.boomstream.com/balancer/hash:6a3ef95256df7b0cfa24dcbf9002d211/xxxxxxxxx.orig</DownloadLink> <Poster> <Code>hh1VIHbe-a1</Code> <Width>352</Width> <Height>640</Height> <Url>https://bs.boomstream.com/balancer/hh1VIHbe-a1.jpg</Url> </Poster> <Transcodes> <Item> <Code>hh1VIHbe-H63Th2OK</Code> <Title>240p</Title> <Width>132</Width> <Height>240</Height> <PseudoMP4>https://bs.boomstream.com/balancer/hh1VIHbe-H63Th2OK.mp4</PseudoMP4> <AppleHLS>https://bs.boomstream.com/balancer/hh1VIHbe-H63Th2OK/playlist.m3u8</AppleHLS> </Item> <Item> <Code>hh1VIHbe-5SQ8X51e</Code> <Title>360p</Title> <Width>198</Width> <Height>360</Height> <PseudoMP4>https://bs.boomstream.com/balancer/hh1VIHbe-5SQ8X51e.mp4</PseudoMP4> <AppleHLS>https://bs.boomstream.com/balancer/hh1VIHbe-5SQ8X51e/playlist.m3u8</AppleHLS> </Item> </Transcodes> <Adaptive> <AppleHLS>https://bs.boomstream.com/adaptive/hh1VIHbe/playlist.m3u8</AppleHLS> </Adaptive> <Screenshots> <Item> <Code>hh1VIHbe-a1</Code> <Width>352</Width> <Height>640</Height> <Url>https://bs.boomstream.com/balancer/hh1VIHbe-a1.jpg</Url> </Item> <Item> <Code>hh1VIHbe-a2</Code> <Width>352</Width> <Height>640</Height> <Url>https://bs.boomstream.com/balancer/hh1VIHbe-a2.jpg</Url> </Item> <Item> <Code>hh1VIHbe-a3</Code> <Width>352</Width> <Height>640</Height> <Url>https://bs.boomstream.com/balancer/hh1VIHbe-a3.jpg</Url> </Item> <Item> <Code>hh1VIHbe-a4</Code> <Width>352</Width> <Height>640</Height> <Url>https://bs.boomstream.com/balancer/hh1VIHbe-a4.jpg</Url> </Item> <Item> <Code>hh1VIHbe-a5</Code> <Width>352</Width> <Height>640</Height> <Url>https://bs.boomstream.com/balancer/hh1VIHbe-a5.jpg</Url> </Item> </Screenshots> </Item> </Recordings> </UpcomingLive> </RestreamHosts> <Status>Success</Status> </Response>
Получение списка трансляций.
Входные параметры
Обязательные параметры:
Выходные параметры
Пример запроса:
https://boomstream.com/api/live/list?apikey=[API_KEY]
Пример ответа:
<Response> <Lives> <Item> <Title>Promo</Title> <Code>xxxxxxxx</Code> <PublishKey>xxxxxxxx</PublishKey> <EncoderLink> https://boomstream.com/api/live/encoder?hash=xxxxxxxxxxxxxxxxx&code=xxxxxxxx </EncoderLink> <OnlineStatus>True</OnlineStatus> <RecordStatus>True</RecordStatus> <Concurrent>10</Concurrent> <CreationDate>2015-01-29 15:05:58</CreationDate> <StartAt>2022-04-27 14:22:00</StartAt> <Timezone>Europe/Oslo</Timezone> <Type>live</Type> <PlayerCode><iframe width="{{width}}" height="{{height}}" src="https://boomstream.com/player.html?code=xxxxxxxx" frameborder="0" scrolling="no"></iframe></PlayerCode> <Poster> <Code>xxxxxxxx-m3</Code> <Width>1920</Width> <Height>1080</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url> </Poster> <Screenshots> <Item> <Code>xxxxxxxx-m3</Code> <Width>1920</Width> <Height>1080</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url> </Item> </Screenshots> <Recordings/> </UpcomingLive> </RestreamHosts> </Item> </Lives> <Status>Success</Status> </Response>
Добавление новой трансляции
Входные параметры
Обязательные параметры:
Необязательные параметры:
Выходные параметры
Пример запроса:
https://boomstream.com/api/live/create?apikey=[API_KEY]&title=temp
Пример ответа:
<Response> <Title>Promo</Title> <Code>xxxxxxxx</Code> <PublishKey>xxxxxxxx</PublishKey> <EncoderLink> https://boomstream.com/api/live/encoder?hash=xxxxxxxxxxxxxxxxx&code=xxxxxxxx </EncoderLink> <OnlineStatus>True</OnlineStatus> <RecordStatus>True</RecordStatus> <Concurrent>10</Concurrent> <CreationDate>2015-01-29 15:05:58</CreationDate> <StartAt>2022-04-27 14:22:00</StartAt> <Timezone>Europe/Oslo</Timezone> <Type>live</Type> <PlayerCode><iframe width="{{width}}" height="{{height}}" src="https://boomstream.com/player.html?code=xxxxxxxx" frameborder="0" scrolling="no"></iframe></PlayerCode> <Poster> <Code>xxxxxxxx-m3</Code> <Width>1920</Width> <Height>1080</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url> </Poster> <Screenshots> <Item> <Code>xxxxxxxx-m3</Code> <Width>1920</Width> <Height>1080</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url> </Item> </Screenshots> </UpcomingLive> </RestreamHosts> <Status>Success</Status> </Response>
Обновление параметров трансляции
Входные параметры
Обязательные параметры:
Необязательные параметры:
Выходные параметры
Пример запроса:
https://boomstream.com/api/live/update?apikey=[API_KEY]&code=xxxxxxxx&title=temp
Пример ответа:
<Response> <Title>Promo</Title> <Code>xxxxxxxx</Code> <PublishKey>xxxxxxxx</PublishKey> <EncoderLink> https://boomstream.com/api/live/encoder?hash=xxxxxxxxxxxxxxxxx&code=xxxxxxxx </EncoderLink> <OnlineStatus>True</OnlineStatus> <RecordStatus>True</RecordStatus> <Concurrent>10</Concurrent> <CreationDate>2015-01-29 15:05:58</CreationDate> <StartAt>2022-04-27 14:22:00</StartAt> <Timezone>Europe/Oslo</Timezone> <Type>live</Type> <PlayerCode><iframe width="{{width}}" height="{{height}}" src="https://boomstream.com/player.html?code=xxxxxxxx" frameborder="0" scrolling="no"></iframe></PlayerCode> <Poster> <Code>xxxxxxxx-m3</Code> <Width>1920</Width> <Height>1080</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url> </Poster> <Screenshots> <Item> <Code>xxxxxxxx-m3</Code> <Width>1920</Width> <Height>1080</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url> </Item> </Screenshots> </UpcomingLive> </RestreamHosts> <Status>Success</Status> </Response>
Запись трансляции
Входные параметры
Обязательные параметры:
Пример запроса:
https://boomstream.com/api/live/record?apikey=[API_KEY]&code=xxxxxxxx&record=1
Пример ответа:
<Response> <Status>Success</Status> </Response>
Удаление медиа-файла
Входные параметры
Обязательные параметры:
Пример запроса:
https://boomstream.com/api/live/delete?apikey=[API_KEY]&code=xxxxxxxx
Пример ответа:
<Response> <Status>Success</Status> </Response>
Указать сервер для мультистриминга потока
Входные параметры
Обязательные параметры:
Необязательные параметры:
Выходные параметры
Пример запроса:
http://boomstream.com/api/live/restreaming?apikey=[API_KEY]&code=xxxxxxxx&server=2&enable=true&server_url=rtmp:///input.com&login=[LOGIN]&password=[PASSWORD]
Пример ответа:
<Response> <Title>Promo</Title> <Code>xxxxxxxx</Code> <PublishKey>xxxxxxxx</PublishKey> <EncoderLink> https://boomstream.com/api/live/encoder?hash=xxxxxxxxxxxxxxxxx&code=xxxxxxxx </EncoderLink> <OnlineStatus>True</OnlineStatus> <RecordStatus>True</RecordStatus> <Concurrent>10</Concurrent> <CreationDate>2015-01-29 15:05:58</CreationDate> <StartAt>2022-04-27 14:22:00</StartAt> <Timezone>Europe/Oslo</Timezone> <Type>live</Type> <PlayerCode><iframe width="{{width}}" height="{{height}}" src="https://boomstream.com/player.html?code=xxxxxxxx" frameborder="0" scrolling="no"></iframe></PlayerCode> <Poster> <Code>xxxxxxxx-m3</Code> <Width>1920</Width> <Height>1080</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url> </Poster> <Screenshots> <Item> <Code>xxxxxxxx-m3</Code> <Width>1920</Width> <Height>1080</Height> <Url>https://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url> </Item> </Screenshots> <Status>Success</Status> </Response>