Remote Assets

A remote asset is a piece of content that is hosted outside of Backlot. Instead of uploading, transcoding, and storing the content in Backlot, you simply upload its URL and other descriptive information so that Backlot can find the content when needed.

For an introduction, see Remote Assets.
Note: For more information about Backlot REST API commands, see the Backlot API Reference.

Common Routes, Attributes, Properties and Query String Parameters

Example

The following example creates a remote asset.

Note: Do not create a null external_id, that is, an external_id with no value ("") or a value of "null". Such null external IDs cannot be searched for later.
[POST]/v2/assets{  
   "name":"ApiAutoV2_08",
   "stream_urls":{  
      "flash":"http://MyDomain.com/MyRemoteAsset.mp4"
   },
 "asset_type":"remote_asset"
 "duration":120000,
 "external_id":"1234"
}
.
.
.           

Backlot returns a response similar to the following:

{  
   "asset_type":"remote_asset",
   "name":"ApiAutoV2_08",
   "preview_image_url":null,
   "duration":120000,
   "created_at":"2011-06-03T22:13:00+00:00",
   "embed_code":"embed_code",
   "stream_urls":{  
      "ipad":null,
      "source_file":null,
      "flash":"http://MyDomain.com/MyRemoteAsset.mp4",
      "itunes":null,
      "iphone":null
   },
   "time_restrictions":null,
   "updated_at":"2011-06-03T22:13:00+00:00",
   "external_id":"1234",
   "description":null,
   "status":"live"
}
.
.
.          
Note:

Try out the code samples using your account credentials in the Ooyala Scratchpad. For information about using the Scratchpad, see Practice Making Requests with the Scratchpad. To launch the scratchpad, go to Ooyala API Scratchpad.

해당 내용이 도움 되었습니까?