AWS Elemental MediaLive
User Guide

JSON Code for an Input Switch Action

JSON Code for a Fixed Input Switch Action

This JSON code goes in the --creates parameter of the command.

"ScheduleActions": [ { "ScheduleActionStartSettings": { "FixedModeScheduleActionStartSettings": { "Time": "string" } }, "ActionName": "string", "ScheduleActionSettings": { "InputSwitchSettings": { "InputAttachmentNameReference": "string" } } } ]

JSON Code for a Follow Input Switch Action

This JSON code goes in the --creates parameter of the command .

"ScheduleActions": [ { "ScheduleActionStartSettings": { "FollowModeScheduleActionStartSettings": { "FollowPoint": "string", "ReferenceActionName": "string" } }, "ActionName": "string", "ScheduleActionSettings": { "InputSwitchSettings": { "InputAttachmentNameReference": "string" } } } ]

Example 1

This example of a request switches to an input at a fixed time. The input is the input attachment with the name vod_ward_cars_ad. This name was given to the input when the input was set up as an input attachment in this channel.

"ScheduleActions": [ { "ScheduleActionStartSettings": { "FixedModeScheduleActionStartSettings": { "Time": "2018-05-21T20:42:19.000Z" } }, "ActionName": "ad_002", "ScheduleActionSettings": { "InputSwitchSettings": { "InputAttachmentNameReference": "vod_ward_cars_ad" } } } ]

Example 2

This example shows a request that contains two input switches. The first switch is the same as example 1. The second switch (which starts at the second "ScheduleActionStartSettings" line) is set up to follow the first switch. The switch will occur when the previous action (ad_002) has ended. In order for a follow switch to work, the previous action must have an input that is a file input. The second switch can be a file input or live input. In this case, it is a live input, as the input name implies.

"ScheduleActions": [ { "ScheduleActionStartSettings": { "FixedModeScheduleActionStartSettings": { "Time": "2018-05-21T20:42:19.000Z" } }, "ActionName": "ad_002", "ScheduleActionSettings": { "InputSwitchSettings": { "InputAttachmentNameReference": "vod_ward_cars_ad" } } }, { "ScheduleActionStartSettings": { "FollowModeScheduleActionStartSettings": { "FollowPoint": "END", "ReferenceActionName": "ad_002" } }, "ActionName": "end_ad_block", "ScheduleActionSettings": { "InputSwitchSettings": { "InputAttachmentNameReference": "live_studio_feed" } } } ]