TVideoGrabber.Cancel

Prev

Next

TVideoGrabber

Methods

 




































































































Cancels any task currently running.


Declaration
function Cancel: Boolean;


void __fastcall Cancel(void)


Function Cancel() As Boolean

Description

Cancels any task currently running (preview, recording, playback as well as reencoding).

Recording
If the recording is running, it is immediately stopped:
- if the recording had to be recompressed after capture (CompressionMode = cm_CompressAfterRecording), this reencoding operation is cancelled,
- if the recording had to be recopied after capture (PreallocCapFileEnabled = true), this copy operation is cancelled.

Reecording
The current reencoding operation is stopped immediately.

Returns true upon success.