Methods: info | list | create | update | record | delete | restream
info
Get information about Live using its code
Input parameters
Required parameters:
- String apikey (API key)
- String code (Live code)
Output parameters
- String Title (Live name)
- String Code (Live code)
- String PublishKey (Streaming key)
- String EncoderLink (Encoder link)
- Boolean OnlineStatus (Broadcasting status)
- Boolean RecordStatus (Record status)
- Integer Concurrent (Quantity of concurrent users)
- String CreationDate (Date of creation)
- String PlayerCode (HTML player code)
- String Poster - Code (Poster code)
- Integer Poster - Width (Poster width)
- Integer Poster - Height (Poster height)
- String Poster - Url (Link to the poster)
- String Screenshots - Item - Code (Screenshot code)
- Integer Screenshots - Item - Width (Screenshot width)
- Integer Screenshots - Item - Height (Screenshot height)
- String Screenshots - Item - Url (Link to the screenshot)
- Boolean DvrStatus (Status of DVR function)
- Array Recordings - Item (Array of recordings, object is similar to Media info)
Example request:
https://boomstream.com/api/live/info?apikey=[API_KEY]&code=xxxxxxxx
Example response:
<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>
<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>
<DvrStatus>False</DvrStatus>
<Status>Success</Status>
</Response>
list
Get Live list
Input parameters
Required parameters:
- String apikey (API key)
Output parameters
- String Title (Live name)
- String Code (Live code)
- String PublishKey (Stream key)
- String EncoderLink (Encoder link)
- Boolean OnlineStatus (Broadcasting status)
- Boolean RecordStatus (Record status)
- Integer Concurrent (Quantity of concurrent users)
- String CreationDate (Date of creation)
- String PlayerCode (HTML player code)
- String Poster - Code (Poster code)
- Integer Poster - Width (Poster width)
- Integer Poster - Height (Poster height)
- String Poster - Url (Link to the poster)
- String Screenshots - Item - Code (Screenshot code)
- Integer Screenshots - Item - Width (Screenshot width)
- Integer Screenshots - Item - Height (Screenshot height)
- String Screenshots - Item - Url (Link to the screenshot)
- Array Recordings - Item (Array of recordings, object is similar to Media info)
Example request:
https://boomstream.com/api/live/list?apikey=[API_KEY]
Example response:
<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>
<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>
</Lives>
<Status>Success</Status>
</Response>
create
Add new Live
Input parameters
Required parameters:
- String apikey (API key)
- String title (Live name)
Optional parameters:
- Integer autorecord (Autorecord) 1-Yes, 0-No
- Integer show_records (Show records) 1-Yes, 0-No
- Date start_date (Set a timer for countdown in format Y-m-d H:i:s)
- String timezone (To display correct stream countdown. Default Europe/Moscow)
- String filetemplate (Template of file naming)
- Default:
%name% - %date% %time% - Available variables:
%index%,%name%,%date%,%time%
- Default:
- Integer folder (Save to the folder with Live naming) 1-Yes, 0-No
- Integer rotation (Rotation of records by duration, indicates in minutes. Maximum value is 1440 minutes)
- String offlinetitle (Offline message)
- String description (Description for page interface)
- Integer dvr (DVR function enabled) 1-Yes, 0-No
Output parameters
- String Title (Live name)
- String Code (Live code)
- String PublishKey (Stream key)
- String EncoderLink (Encoder link)
- Boolean OnlineStatus (Broadcasting status)
- Boolean RecordStatus (Record status)
- Integer Concurrent (Quantity of concurrent users)
- String CreationDate (Date of creation)
- String PlayerCode (HTML player code)
- Object Poster (Poster information)
- Array Screenshots (List of screenshots)
- Boolean DvrStatus (Status of DVR function)
Example request:
https://boomstream.com/api/live/create?apikey=[API_KEY]&title=temp
Example response:
<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>
<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>
<DvrStatus>False</DvrStatus>
<Status>Success</Status>
</Response>
update
Update Live parameters
Input parameters
Required parameters:
- String apikey (API key)
- String code (Live code)
Optional parameters:
- String title (Live name)
- Integer autorecord (Autorecord) 1-Yes, 0-No
- Integer show_records (Show records) 1-Yes, 0-No
- String filetemplate (Template of file naming)
- Integer folder (Save to the folder with Live naming) 1-Yes, 0-No
- Integer rotation (Rotation of records by duration, indicates in minutes)
- String offlinetitle (Offline message)
- String description (Description for page interface)
- Integer dvr (DVR function enabled) 1-Yes, 0-No
Output parameters
Structure identical to create.
Example request:
https://boomstream.com/api/live/update?apikey=[API_KEY]&code=xxxxxxxx&title=temp
Example response:
<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>
<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>
<DvrStatus>False</DvrStatus>
<Status>Success</Status>
</Response>
record
Live recording
Input parameters
Required parameters:
- String apikey (API key)
- String code (Live code)
- Integer record (Record status) 1-Yes (record), 0-No (stop)
Example request:
https://boomstream.com/api/live/record?apikey=[API_KEY]&code=xxxxxxxx&record=1
Example response:
<Response>
<Status>Success</Status>
</Response>
delete
Deleting Live stream
Input parameters
Required parameters:
- String apikey (API key)
- String code (Live code)
Example request:
https://boomstream.com/api/live/delete?apikey=[API_KEY]&code=xxxxxxxx
Example response:
<Response>
<Status>Success</Status>
</Response>
restream
Point server for multistreaming
Input parameters
Required parameters:
- String apikey (API key)
- String code (Live stream code)
- Integer server (Server number as in your account, 1-8)
- String server_url (Multistreaming server URL)
- String stream_key (Multistreaming server stream key)
Optional parameters:
- Boolean enable (Enable/Disable streaming to the server)
- String login (Login if multistreaming server needs authorization)
- String password (Password if multistreaming server needs authorization)
Output parameters
Structure identical to info.
Example request:
https://boomstream.com/api/live/restreaming?apikey=[API_KEY]&code=xxxxxxxx&server=2&enable=true&server_url=rtmp://input.com&login=[LOGIN]&password=[PASSWORD]
Example response:
<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>
<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>
