Skip to main content

overwolf.media.videos.createVideoComposition

Overwolf APIs / overwolf / overwolf / media / videos / createVideoComposition

function createVideoComposition(
sourceVideoUrl: string,
segments: object,
callback: CallbackFunction<FileResult>,
): void;

Creates a compilation video out of a source video and a list of segments.

Parameters

ParameterTypeDescription
sourceVideoUrlstringThe url of the source video in an overwolf://media form.
segments&#123; segments: VideoCompositionSegment[]; &#125;A JSON containing a list of segments, each segment has a start time and an end time in milliseconds. The segments must be sorted in ascending order. Example: { "segments": [ { "startTime": 2000, "endTime": 4000 }, { "startTime": 8000, "endTime": 10000 }, { "startTime": 14000, "endTime": 18000 } ] }
segments.segmentsVideoCompositionSegment[]-
callbackCallbackFunction<FileResult>A callback function which will be called with the status of the request and the url to the target video.

Returns

void