Replace Content

replace_content

Blacks out a section of the live feed and replaces it with pre-encoded content.

Request body parameters are described below.

Request ParameterTypeDescription
duration RequiredFloatDefines the duration, in seconds, of the segment that will be removed from the live feed.
replacements RequiredListDefines a list of replacement content as described below.
offset_from_now_msIntegerRequires 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_msIntegerIdentifies a time relative to the start of the current asset, in milliseconds, when an operation will take effect.
start_timecodeStringIdentifies 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 ParameterTypeDescription
durationFloatDefines 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 RequiredStringIdentifies 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"
		}
	]
}