Class: ImageSequenceRecorder
Extra-Helpers.ImageSequenceRecorder
Hierarchy
↳
ImageSequenceRecorder
Properties
options
• options: CanvasRecorderOptions
Inherited from
Defined in
webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:28
_canvas
• Protected
_canvas: HTMLCanvasElement
Inherited from
Defined in
webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:29
_console
• Protected
_console: Console
= console
Inherited from
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
Defined in
webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:68
_ondataavailable
• Protected
_ondataavailable: (event
: BlobEvent
) => void
Type declaration
▸ (event
): void
Parameters
Name | Type |
---|---|
event | BlobEvent |
Returns
void
Inherited from
ACanvasRecorder._ondataavailable
Defined in
webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:92
Accessors
state
• get
state(): TRecorderStates
Returns
Inherited from
ACanvasRecorder.state
Defined in
webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:34
Methods
setState
▸ setState(value
, event?
): void
Parameters
Name | Type |
---|---|
value | "error" | "stopped" | "recording" | "paused" | "starting" | "stopping" |
event? | any |
Returns
void
Inherited from
Defined in
webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:38
setOptions
▸ setOptions(options
): void
Parameters
Name | Type |
---|---|
options | Partial <CanvasRecorderOptions > |
Returns
void
Inherited from
Defined in
webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:47
isRecording
▸ isRecording(): boolean
Returns
boolean
Inherited from
Defined in
webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:64
dispose
▸ dispose(): void
Returns
void
Inherited from
Defined in
webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:76
start
▸ start(): void
Returns
void
Overrides
Defined in
webgi/src/extras/canvas_recorder/ImageSequenceRecorder.ts:8
requestFrame
▸ requestFrame(): boolean
Returns
boolean
Overrides
Defined in
webgi/src/extras/canvas_recorder/ImageSequenceRecorder.ts:45
pause
▸ pause(): void
Returns
void
Overrides
Defined in
webgi/src/extras/canvas_recorder/ImageSequenceRecorder.ts:72
stop
▸ stop(recordingCallback
): void
Parameters
Name | Type |
---|---|
recordingCallback | (b : Blob ) => void |
Returns
void
Overrides
Defined in
webgi/src/extras/canvas_recorder/ImageSequenceRecorder.ts:78
_setOptions
▸ Protected
_setOptions(value
): void
Parameters
Name | Type |
---|---|
value | Partial <CanvasRecorderOptions > |
Returns
void
Inherited from
Defined in
webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:43
Constructors
constructor
• new ImageSequenceRecorder(canvas
, options?
)
Parameters
Name | Type |
---|---|
canvas | HTMLCanvasElement |
options? | Partial <CanvasRecorderOptions > |