本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
以下各节显示输入切换操作的有效载荷。
在此有效载荷中,ScheduleActionStartSettings
仅包含 FixedModeScheduleActionStartSettings
、ImmediateModeScheduleActionStartSettings
或 FollowModeScheduleActionStartSettings
中的一个。
有关每个标签的示例,请参阅以下示例。
有关以下各字段的含义和值的信息JSON,请参阅输入切换的字段。
{ "ChannelId": "string", "Creates": { "ScheduleActions": [ { "ScheduleActionStartSettings": { "FixedModeScheduleActionStartSettings": { "Time": "string" }, "FollowModeScheduleActionStartSettings": { "FollowPoint": "enum", "ReferenceActionName": "string" }, "ImmediateModeScheduleActionStartSettings": { } }, "ActionName": "string", "ScheduleActionSettings": { "InputSwitchSettings": { "InputAttachmentNameReference": "string", "InputClippingSettings": { "InputTimecodeSource": "enum", "StartTimecode": { "Timecode": "string" }, "StopTimecode": { "LastFrameClippingBehavior": "enum", "Timecode": "string" } }, "UrlPath": ["string", ...] } } ] } }
切换到固定启动时间的实时输入的示例
此请求示例将在固定启动时间切换到实时输入。切换操作称为 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" } } } ] } }
静态文件切换为跟随的示例
此请求示例是切换到静态文件输入以跟随前一个输入的结束。切换操作称为 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" } } } } } ] } }
切换到具有即时启动时间的动态输入的示例
此请求示例是立即切换到动态文件输入。切换操作称为 action-unscheduled-standby
,它会切换到连接到名为 dynamic-unscheduled-standby
的输入附件的输入。对于这种用于动态输入的用法,要使用的文件是 oceanwaves.mp4
。
{ "ChannelId": "999999", "Creates": { "ScheduleActions": [ { "ScheduleActionStartSettings": { "ImmediateModeScheduleActionStartSettings": { } }, "ActionName": "action-unscheduled-slate", "ScheduleActionSettings": { "InputSwitchSettings": { "InputAttachmentNameReference": "slate", "UrlPath":[ "main/oceanwaves.mp4", "redundant/oceanwaves.mp4"] } } } ] } }