replace_content
Blacks out a section of the live feed and replaces it with pre-encoded content.
Request body parameters are described below.
Request Parameter | Type | Description |
---|---|---|
duration Required | Float | Defines the duration, in seconds, of the segment that will be removed from the live feed. |
replacements Required | List | Defines a list of replacement content as described below. |
offset_from_now_ms | Integer | Requires Live Slicer version 17061500 or higher. Identifies a time relative to now (local system time), in milliseconds, when an operation will take effect. |
offset_time_ms | Integer | Identifies a time relative to the start of the current asset, in milliseconds, when an operation will take effect. |
start_timecode | String | Identifies the video frame at which this operation will take effect. |
The replacements parameter is a list of dictionaries. Each dictionary may contain the following parameters:
Request Parameter | Type | Description |
---|---|---|
duration | Float | Defines the duration, in seconds, of the replacement content that may be inserted into the live feed. By default, the full duration is used. |
external_id Required | String | Identifies replacement content by its external ID. |
Sample request:
POST /replace_content HTTP/1.1
{
"start_timecode": "00:15:21;09",
"duration": 213.32,
"replacements": [{
"external_id": "asdf1234",
"duration": 104.2
}, {
"external_id": "asdf4321"
}
]
}