Child pages
  • Get Instruction for Live Streaming CDN Internal Resource
Skip to end of metadata
Go to start of metadata
GET /cdn_resources/:cdn_resource_id/instructions.xml
GET /cdn_resources/:cdn_resource_id/instructions.json


XML Request example:

curl -i -X GET -u user:userpass http://onapp.test/cdn_resources/:id/instructions.xml


Json Request example:

 

curl -i -X GET -u user:userpass http://onapp.test/cdn_resources/:id/instructions.json

 

 

XML Response example

<?xml version="1.0" encoding="UTF-8"?>
<cdn_resource>
  <cdn_hostname>LV.Inter</cdn_hostname>
  <cname>881661104.r.worldcdn-beta.net</cname>
  <created_at>2013-08-06T16:21:45+03:00</created_at>
  <id type="integer">11639</id>
  <resource_type>STREAM_LIVE</resource_type>
  <updated_at>2013-08-06T16:39:30+03:00</updated_at>
  <user_id type="integer">20</user_id>
  <last_24h_cost type="float">0.0</last_24h_cost>
  <cdn_reference type="integer">881661104</cdn_reference>
  <publishing_point>internal</publishing_point>
  <instructions>
    <streaming>
      <credentials>
        <username>P881661104</username>
        <password>bUHzhj61MG</password>
        <stream>mystream</stream>
      </credentials>
      <urls>
        <fms>rtmp://881661104.publishstream.worldcdn-beta.net/P881661104</fms>
        <backup>rtmp://backup.881661104.publishstream.worldcdn-beta.net/P881661104</backup>
      </urls>
    </streaming>
    <publishing>
      <urls>
        <smil>http://video.worldcdn-beta.net/881661104/mystream.smil</smil>
        <apple_http_live_streaming>http://video.worldcdn-beta.net/881661104/_definst_/mystream.m3u8</apple_http_live_streaming>
        <adobe_http_dynamic_streaming>http://video.worldcdn-beta.net/881661104/_definst_/mystream.f4m</adobe_http_dynamic_streaming>
        <microsoft_smooth_streaming>http://video.worldcdn-beta.net/881661104/_definst_/mystream.ism</microsoft_smooth_streaming>
      </urls>
    </publishing>
  </instructions>
</cdn_resource>

 

Where:

cdn_hostname* - indicate the hostname which will serve the content

cname - a CNAME for the CDN Hostname which can then be used to view the contents.

resource_type - the Stream Live resource

id - the ID of the resource

user_id - the user ID

last_24h_cost - cost of the resource for the last 24 hours.

cdn_reference - the ID in OnApp Dashboard

publishing_point - - the publishing point type: internal

instructions - the array of parameters for embedding video and enabling live streaming for Live Streaming CDN resources.

credentials - the array with user credentials:

username - the user log in

password - the user password

stream - the stream name

urls - the array with URLs

fms - the FMS URL

backup - the Backup URL

smil - The SMIL playlist provides an RTMP URL and should be used with Flash-based players only.

apple_http_live_streaming - This returns a 302 redirect to a Apple HLS manifest and should be used with Apple HLS-compatible players only.

adobe_http_dynamic_streaming - This returns an Adobe HDS manifest and should be used with Adobe HDS-compatible players only.

microsoft_smooth_streaming - This returns a 302 redirect to Smooth Streaming manifest and should be used with Smooth Streaming-compatible players only.

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels