Setting an Asset's Post-processing Status

Note: For more information about Backlot REST API commands, see the Backlot API Reference.
After an asset has been uploaded and transcoded, you might not want it to go live immediately, which is the default. By setting the asset's post-processing status, you can instruct the system to not immediately publish the asset. There are only two statuses:
  • live (default)
  • paused
  1. To set an asset's post-processing status to paused.
    [PATCH]/v2/assets/BjMDVrOTrLeHriLAq43T5y{
       "status" : "paused"
    }

    Backlot returns a response similar to the following.

    {
       "duration": "5038",
       "asset_type": "video",
       "name": "bleebleblobble.mov",
       "preview_image_url": "http://ak.c.ooyala.com/w3ZHc0Njr33Tdp-RRcwfZMjaOrmzOP82/Ut_HKthATH4eww8X4xMDoxOmdtO40mAx",
       "original_file_name": "bleebleblobble.mov",
       "embed_code": "w3ZHc0Njr33Tdp-RRcwfZMjaOrmzOP82",
       "hosted_at": "",
       "publishing_rule_id": "11a2b0702959459cb60db9cd5b7adb62",
       "description": "geeble gobble",
       "status": "paused",
       "external_id": "ABC124",
       "time_restrictions": null,
       "created_at": "2012-10-10T15:24:40Z",
       "updated_at": "2013-08-06T15:32:17Z",
       "ad_set_id": null
    }
    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.

  2. To set an asset's post-processing status to live.
    [PATCH]/v2/assets/BjMDVrOTrLeHriLAq43T5y{
       "status" : "live"
    }

    Backlot returns a response similar to the following.

    {
       "time_restrictions": null,
       "original_file_name": "bleebleblobble.mov",
       "created_at": "2012-10-10T15:24:40Z",
       "external_id": "ABC124",
       "name": "bleebleblobble.mov",
       "preview_image_url": "http://ak.c.ooyala.com/w3ZHc0Njr33Tdp-RRcwfZMjaOrmzOP82/Ut_HKthATH4eww8X4xMDoxOmdtO40mAx",
       "ad_set_id": null,
       "asset_type": "video",
       "duration": "5038",
       "status": "live",
       "updated_at": "2013-08-06T15:32:53Z",
       "hosted_at": "",
       "description": "geeble gobble",
       "embed_code": "w3ZHc0Njr33Tdp-RRcwfZMjaOrmzOP82",
       "publishing_rule_id": "11a2b0702959459cb60db9cd5b7adb62"
    }
    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.

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