本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
激活每個輸出圖像操作-有效負載
如需有關下列 JSON 中欄位的意義和值的資訊,請參閱用於激活每個輸出圖像覆蓋的字段。
{ "ChannelId": "string", "Creates": { "ScheduleActions": [ { "ScheduleActionStartSettings": { "FixedModeScheduleActionStartSettings": { "Time": "string" }, "ImmediateModeScheduleActionStartSettings": { } }, "ActionName": "string", "ScheduleActionSettings": { "StaticImageOutputActivateSettings": { "Duration": integer, "FadeIn": integer, "FadeOut": integer, "Height": integer, "Image": { "PasswordParam": "string", "Uri": "string", "Username": "string" }, "ImageX": integer, "ImageY": integer, "Layer": integer, "Opacity": integer, "OutputNames": [ {} ], "Width": integer } } } ] } }
範例
此請求範例會建立影像覆蓋圖,以插入色版中的特定輸出中。覆蓋圖使用存放在 Amazon S3 儲存貯體中的檔案。請求將圖像插入輸出hls-high-res
和mss-high-res
。影像的大小適合這些輸出中的視訊解析度。
該請求旨在始終存在。因此,它被設置為立即啟動(一旦通道啟動)所有時間都以毫秒為單位,並且所有定位值都以像素為單位:
{ "ChannelId": "999999", "Creates": { "ScheduleActions": [ { "ScheduleActionStartSettings": { "ImmediateModeScheduleActionStartSettings": { } }, }, "ActionName": "logo-1280", "ScheduleActionSettings": { "StaticImageOutputActivateSettings": { "Image": { "PasswordParam": "corplogo!2312", "Uri": "s3ssl://DOC-EXAMPLE-BUCKET/logos/corporate/10percent-1280.bmp", "Username": "medialiveoperator" }, "Layer": 0, "outputNames": [ hls-high-res,mss-high-res ], "ImageX": 200, "ImageY": 300, "FadeIn": 1500, "Opacity": 60 } } } ] } }