Skip to main content

Class: ImageSequenceRecorder

Extra-Helpers.ImageSequenceRecorder

Hierarchy

Properties

options

options: CanvasRecorderOptions

Inherited from

ACanvasRecorder.options

Defined in

webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:28


_canvas

Protected _canvas: HTMLCanvasElement

Inherited from

ACanvasRecorder._canvas

Defined in

webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:29


_console

Protected _console: Console = console

Inherited from

ACanvasRecorder._console

Defined in

webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:31


_currentRecording

Protected _currentRecording: Blob[] = []

Inherited from

ACanvasRecorder._currentRecording

Defined in

webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:32


_frameCount

Protected _frameCount: number = 0

Inherited from

ACanvasRecorder._frameCount

Defined in

webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:68


_ondataavailable

Protected _ondataavailable: (event: BlobEvent) => void

Type declaration

▸ (event): void

Parameters
NameType
eventBlobEvent
Returns

void

Inherited from

ACanvasRecorder._ondataavailable

Defined in

webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:92

Accessors

state

get state(): TRecorderStates

Returns

TRecorderStates

Inherited from

ACanvasRecorder.state

Defined in

webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:34

Methods

setState

setState(value, event?): void

Parameters

NameType
value"error" | "stopped" | "recording" | "paused" | "starting" | "stopping"
event?any

Returns

void

Inherited from

ACanvasRecorder.setState

Defined in

webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:38


setOptions

setOptions(options): void

Parameters

NameType
optionsPartial<CanvasRecorderOptions>

Returns

void

Inherited from

ACanvasRecorder.setOptions

Defined in

webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:47


isRecording

isRecording(): boolean

Returns

boolean

Inherited from

ACanvasRecorder.isRecording

Defined in

webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:64


dispose

dispose(): void

Returns

void

Inherited from

ACanvasRecorder.dispose

Defined in

webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:76


start

start(): void

Returns

void

Overrides

ACanvasRecorder.start

Defined in

webgi/src/extras/canvas_recorder/ImageSequenceRecorder.ts:8


requestFrame

requestFrame(): boolean

Returns

boolean

Overrides

ACanvasRecorder.requestFrame

Defined in

webgi/src/extras/canvas_recorder/ImageSequenceRecorder.ts:45


pause

pause(): void

Returns

void

Overrides

ACanvasRecorder.pause

Defined in

webgi/src/extras/canvas_recorder/ImageSequenceRecorder.ts:72


stop

stop(recordingCallback): void

Parameters

NameType
recordingCallback(b: Blob) => void

Returns

void

Overrides

ACanvasRecorder.stop

Defined in

webgi/src/extras/canvas_recorder/ImageSequenceRecorder.ts:78


_setOptions

Protected _setOptions(value): void

Parameters

NameType
valuePartial<CanvasRecorderOptions>

Returns

void

Inherited from

ACanvasRecorder._setOptions

Defined in

webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:43

Constructors

constructor

new ImageSequenceRecorder(canvas, options?)

Parameters

NameType
canvasHTMLCanvasElement
options?Partial<CanvasRecorderOptions>

Inherited from

ACanvasRecorder.constructor

Defined in

webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:52