

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 入力準備アクション — ペイロード
<a name="cli-schedule-fields-for-input-prep"></a>

以下のセクションでは、入力切り替えアクションのペイロードを示します。

このペイロードの 「`ScheduleActionStartSettings`」 には、「`FixedModeScheduleActionStartSettings`」、「`ImmediateModeScheduleActionStartSettings`」、「`FollowModeScheduleActionStartSettings`」 のいずれか 1 つのみが含まれます。

これらの各タグのサンプルについては、以下の例を参照してください。

次の JSON のフィールドの意味と値については、「[入力スイッチのフィールド](schedule-fields-for-ips.md)」を参照してください。

```
{
"ChannelId": "string",
"Creates": {
 "ScheduleActions": [
  {
   "ScheduleActionStartSettings": {
    "FixedModeScheduleActionStartSettings": {
     "Time": "string"
    },
    "FollowModeScheduleActionStartSettings": {
     "FollowPoint": "enum",
     "ReferenceActionName": "string"
    },
    "ImmediateModeScheduleActionStartSettings": {
    }
   },
   "ActionName": "string",
   "ScheduleActionSettings": {
    "InputPrepareSettings": {
     "InputAttachmentNameReference": "string",
     "InputClippingSettings": {
      "InputTimecodeSource": "enum",
      "StartTimecode": {
       "Timecode": "string"
      },
      "StopTimecode": {
       "LastFrameClippingBehavior": "enum",
       "Timecode": "string"
      }
     },
     "UrlPath": ["string", ...]
     }
    }
   }
  ]
 }
}
```

## 開始時刻が固定された入力準備の例
<a name="json-prep-example-1"></a>

このリクエストの例は、固定された開始時刻にライブ入力に切り替えることです。スイッチアクションは 「`studio-feed`」 と呼ばれ、「`live-studio-feed`」 という入力アタッチメントに接続されている入力に切り替わります。指定された UTC 時刻にこの入力に切り替わります。

```
{
  "ChannelId": "999999",
  "Creates": {
    "ScheduleActions": [
      {
       "ScheduleActionStartSettings": {
          "FixedModeScheduleActionStartSettings": {
            "Time": "2018-05-21T20:42:19.000Z"
           }
          },
      "ActionName": "studio-feed",
      "ScheduleActionSettings": {
        "InputSwitchSettings": {
          "InputAttachmentNameReference": "live-studio-feed"
     }
    }
   }
  ]
 }
}
```

## 入力準備の例を以下に示します。
<a name="json-prep-example-2"></a>

このリクエストの例は、静的ファイル入力に切り替えて、前の入力の末尾にフォローすることです。スイッチアクションは 「`action-ad-003`」 と呼ばれ、「`zel-cafe`」 という入力アタッチメントに接続されている入力に切り替わります。「`action-ad-002`」 と呼ばれるアクションが終了すると、この入力に切り替わります。このアクションのファイルは、30 秒と 11 フレーム後に終了するようにクリップされます。

```
{
  "ChannelId": "999999",
  "Creates": {
      "ScheduleActions": [
          {
            "ScheduleActionStartSettings": {
              "FollowModeScheduleActionStartSettings": {
                "FollowPoint": "END",
                "ReferenceActionName": "action-ad-002"
              }
            },
            "ActionName": "action-ad-003",
              "ScheduleActionSettings": {
                 "InputSwitchSettings": {
                    "InputAttachmentNameReference": "zel-cafe",
                      "InputClippingSettings": {
                          "InputTimecodeSource": "ZEROBASED",
               "StopTimecode":{
                 "Timecode": "00:00:30:11",
                 "LastFrameClippingBehavior": "INCLUDE_LAST_FRAME"
              }
            }
          }
        }
      }
    ]
  }
}
```