激活全局图像动作-有效载荷 - MediaLive

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

激活全局图像动作-有效载荷

有关以下 JSON 中字段的含义和值的信息,请参阅用于激活全局图像叠加的字段

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

示例

这个请求示例创建了一个图像叠加层,将其插入频道中每个输出组的每个视频输出中。叠加层使用存储在 Amazon S3 存储桶中的文件。请求不包含持续时间,因此不包含淡出。相反,目的是在适当的时间发送单独的停用请求。所有时间均以毫秒为单位,所有定位值均以像素为单位:

{ "ChannelId": "999999", "Creates": { "ScheduleActions": [ { "ScheduleActionStartSettings": { "FixedModeScheduleActionStartSettings": { "Time": "2018-05-21T20:42:19.000Z" } }, "ActionName": "corporate-logo-030", "ScheduleActionSettings": { "StaticImageActivateSettings": { "Image": { "PasswordParam": "corplogo!2312", "Uri": "s3ssl://DOC-EXAMPLE-BUCKET/logos/corporate/high-res.bmp", "Username": "medialiveoperator" }, "Layer": 1, "FadeIn": 1500, "Height": 900 "Width": 800, "ImageX": 200, "ImageY": 300, "Opacity": 60, } } } ] } }