Remote Assets

A remote asset is a piece of content that you add to Backlot without uploading, processing, or storing the content with Ooyala.

For an introduction, see Remote Assets.

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 The Scratchpad.

Was this article helpful?