Live Object

Methods: info list create update record delete

info

Get information about Live, using it's code.

Input parameters

Required parameters:

  • String apikey (API key)
  • String code (code)

Output parameters

  • String Title (Live name)
  • String Code (Live code)
  • String PublishKey (Streaming code)
  • 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)

Sample query:

http://boomstream.com/api/live/info?apikey=[API_KEY]&code=xxxxxxxx

Sample response:

<Response>
    <Title>Promo</Title>
    <Code>xxxxxxxx</Code>
    <PublishKey>xxxxxxxx</PublishKey>
    <EncoderLink>
        http://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>&lt;iframe width=&quot;{{width}}&quot; height=&quot;{{height}}&quot;
src=&quot;http://boomstream.com/player.html?code=xxxxxxxx&quot; frameborder=&quot;0&quot;
scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;</PlayerCode>
    <Poster>
        <Code>xxxxxxxx-m3</Code>
        <Width>1920</Width>
        <Height>1080</Height>
        <Url>http://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url>
    </Poster>
    <Screenshots>
        <Item>
            <Code>xxxxxxxx-m3</Code>
            <Width>1920</Width>
            <Height>1080</Height>
            <Url>http://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url>
        </Item>
    </Screenshots>
    <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 (Streaming code)
  • 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)

Sample query:

http://boomstream.com/api/live/list?apikey=[API_KEY]

Sample response:

<Response>
    <Lives>
       <Item>
          <Title>Promo</Title>
          <Code>xxxxxxxx</Code>
          <PublishKey>xxxxxxxx</PublishKey>
          <EncoderLink>
              http://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>&lt;iframe width=&quot;{{width}}&quot; height=&quot;{{height}}&quot;
src=&quot;http://boomstream.com/player.html?code=xxxxxxxx&quot; frameborder=&quot;0&quot;
scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;</PlayerCode>
          <Poster>
             <Code>xxxxxxxx-m3</Code>
             <Width>1920</Width>
             <Height>1080</Height>
             <Url>http://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url>
          </Poster>
          <Screenshots>
             <Item>
                <Code>xxxxxxxx-m3</Code>
                <Width>1920</Width>
                <Height>1080</Height>
                <Url>http://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url>
             </Item>
          </Screenshots>
       </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
  • String filetemplate (template of file naming).
    • By default: %name% - %date% %time%
    • In template of file naming you can use following variables:
      • %index% - index of record
      • %name% - name of record
      • %date% - date of record creation
      • %time% - time of record creation
  • 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)

Output parameters

  • String Title (Live name)
  • String Code (Live code)
  • String PublishKey (Streaming code)
  • String EncoderLink (Encoder link)
  • Boolean OnlineStatus (Brodcasting 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)

Sample query:

http://boomstream.com/api/live/create?apikey=[API_KEY]&title=temp

Sample response:

<Response>
    <Title>Promo</Title>
    <Code>xxxxxxxx</Code>
    <PublishKey>xxxxxxxx</PublishKey>
    <EncoderLink>
        http://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>&lt;iframe width=&quot;{{width}}&quot; height=&quot;{{height}}&quot;
src=&quot;http://boomstream.com/player.html?code=xxxxxxxx&quot; frameborder=&quot;0&quot;
scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;</PlayerCode>
    <Poster>
        <Code>xxxxxxxx-m3</Code>
        <Width>1920</Width>
        <Height>1080</Height>
        <Url>http://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url>
    </Poster>
    <Screenshots>
        <Item>
            <Code>xxxxxxxx-m3</Code>
            <Width>1920</Width>
            <Height>1080</Height>
            <Url>http://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url>
        </Item>
    </Screenshots>
    <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).
    • By default: %name% - %date% %time%
    • In template of file naming you can use following variables:
      • %index% - index of record
      • %name% - name of record
      • %date% - date of record creation
      • %time% - time of record creation
  • 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)

Output parameters

  • String Title (Live name)
  • String Code (Live code)
  • String PublishKey (Streaming code)
  • String EncoderLink (Encoder link)
  • Boolean OnlineStatus (Brodcasting 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)

Sample query:

http://boomstream.com/api/live/update?apikey=[API_KEY]&code=xxxxxxxx&title=temp

Sample response:

<Response>
    <Title>Promo</Title>
    <Code>xxxxxxxx</Code>
    <PublishKey>xxxxxxxx</PublishKey>
    <EncoderLink>
        http://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>&lt;iframe width=&quot;{{width}}&quot; height=&quot;{{height}}&quot;
src=&quot;http://boomstream.com/player.html?code=xxxxxxxx&quot; frameborder=&quot;0&quot;
scrolling=&quot;no&quot;&gt;&lt;/iframe&gt;</PlayerCode>
    <Poster>
        <Code>xxxxxxxx-m3</Code>
        <Width>1920</Width>
        <Height>1080</Height>
        <Url>http://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url>
    </Poster>
    <Screenshots>
        <Item>
            <Code>xxxxxxxx-m3</Code>
            <Width>1920</Width>
            <Height>1080</Height>
            <Url>http://bs.boomstream.com/balancer/xxxxxxxx-m3.jpg</Url>
        </Item>
    </Screenshots>
    <Status>Success</Status>
</Response>

record

Live recording

Input parameters

Required parameters:

  • String apikey (API key)
  • String code (Live code)
  • Integer record (Record Status) record-Yes, stop-No

Sample query:

http://boomstream.com/api/live/record?apikey=[API_KEY]&code=xxxxxxxx&record=1

Sample response:

<Response>
    <Status>Success</Status>
</Response>

delete

Deleting media-files

Input parameters

Required parameters:

  • String apikey (API key)
  • String code (Live code)

Sample query:

http://boomstream.com/api/live/delete?apikey=[API_KEY]&code=xxxxxxxx

Sample response:

<Response>
    <Status>Success</Status>
</Response>