Skip to main content

overwolf.media.replays.startCapture

Overwolf APIs / overwolf / overwolf / media / replays / startCapture

Call Signature

function startCapture(
pastDuration: number,
callback: CallbackFunction<FileResult>,
): void;

Starts capturing a replay to a file. A replay id will be returned in the callback which is needed to finish capturing the replay. You can only call this method if replay mode is on and no other replay is currently being captured to a file.

Parameters

ParameterTypeDescription
pastDurationnumberThe video length, in milliseconds to include prior to the time of this call.
callbackCallbackFunction<FileResult>A callback function which will be called with the status of the request.

Returns

void

Call Signature

function startCapture(
replayType: Video,
pastDuration: number,
callback: CallbackFunction<FileResult>,
): void;

Starts capturing a replay to a file. A replay id will be returned in the callback which is needed to finish capturing the replay. You can only call this method if replay mode is on and no other replay is currently being captured to a file.

Parameters

ParameterTypeDescription
replayTypeVideoThe type of replay to capture.
pastDurationnumberThe video length, in milliseconds to include prior to the time of this call.
callbackCallbackFunction<FileResult>A callback function which will be called with the status of the request.

Returns

void

Deprecated

Since version 0.155.