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
| Parameter | Type | Description |
|---|---|---|
sourceVideoUrl | string | The url of the source video in an overwolf://media form. |
segments | { segments: VideoCompositionSegment[]; } | 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.segments | VideoCompositionSegment[] | - |
callback | CallbackFunction<FileResult> | A callback function which will be called with the status of the request and the url to the target video. |
Returns
void