

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 啟用每個輸出映像動作 – 承載
<a name="cli-schedule-fields-for-activate-image-per-output"></a>

如需下列 JSON 中欄位意義和值的資訊，請參閱 [用於啟用每個輸出影像浮水印的欄位](schedule-fields-activate-image-per-output.md)。

```
{
"ChannelId": "string",
"Creates": {
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
    "StaticImageOutputActivateSettings": {
     "Duration": integer,
     "FadeIn": integer,
     "FadeOut": integer,
     "Height": integer,
     "Image": {
      "PasswordParam": "string",
      "Uri": "string",
      "Username": "string"
     },
     "ImageX": integer,
     "ImageY": integer,
     "Layer": integer,
     "Opacity": integer,
     "OutputNames": [
       {}
      ],
     "Width": integer
     }
    }
   }
  ]
 }
}
```

## 範例
<a name="json-deactivate-image-per-output-example"></a>

此請求範例會建立影像浮水印，以插入頻道中的特定輸出。浮水印使用存放在 Amazon S3 儲存貯體中的檔案。請求會將映像插入輸出 `hls-high-res`和 `mss-high-res`。影像的大小適合這些輸出中的影片解析度。

請求旨在始終存在。因此，它會設定為立即啟動 （頻道啟動時立即啟動）。所有時間單位均為毫秒，所有定位值單位均為像素：

```
{
  "ChannelId": "999999",
  "Creates": {
  "ScheduleActions": [
    {
        "ScheduleActionStartSettings": 
          {
          "ImmediateModeScheduleActionStartSettings": {
          }
         },
      },
      "ActionName": "logo-1280",
      "ScheduleActionSettings": {
        "StaticImageOutputActivateSettings": {
          "Image": {
          "PasswordParam": "corplogo!2312",
          "Uri": "s3ssl://amzn-s3-demo-bucket/logos/corporate/10percent-1280.bmp",
          "Username": "medialiveoperator"
          },
          "Layer": 0,
          "outputNames": [
            hls-high-res,mss-high-res
           ],
          "ImageX": 200,
          "ImageY": 300,
          "FadeIn": 1500,
          "Opacity": 60
          }
        }
      }
    ]
  }
}
```