Skip to main content

overwolf.media.replays.capture

Overwolf APIs / overwolf / overwolf / media / replays / capture

Call Signature

function capture(
pastDuration: number,
futureDuration: number,
captureFinishedCallback: CallbackFunction<ReplayResult>,
callback: CallbackFunction<StartReplayResult>,
): 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 replay length, in milliseconds to include prior to the time of this call.
futureDurationnumberThe replay lengh, in milliseconds to include after the time of this call. To ignore it, simply give it a non-positive value
captureFinishedCallbackCallbackFunction<ReplayResult>A callback function which will be called when capturing is finished, at the end of the future duration supplied to this call.
callbackCallbackFunction<StartReplayResult>A callback function which will be called with the status of the request.

Returns

void

Call Signature

function capture(
replayType: Video,
pastDuration: number,
futureDuration: number,
captureFinishedCallback: CallbackFunction<ReplayResult>,
callback: CallbackFunction<Result>,
): 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 replay length, in milliseconds to include prior to the time of this call.
futureDurationnumberThe replay length, in milliseconds to include after the time of this call. To ignore it, simply give it a non-positive value
captureFinishedCallbackCallbackFunction<ReplayResult>A callback function which will be called when capturing is finished, at the end of the future duration supplied to this call.
callbackCallbackFunction<Result>A callback function which will be called with the status of the request.

Returns

void

Deprecated

Since version 0.155.