啟動全域影像動作 — 有效負載 - 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, } } } ] } }