Class: CanvasMediaRecorder
Extra-Helpers.CanvasMediaRecorder
Hierarchy
↳
CanvasMediaRecorder
Methods
GetSupportedMimeTypes
▸ Static
GetSupportedMimeTypes(types?
, codecs?
, firstOnly?
): undefined
| string
| string
[]
Parameters
Name | Type | Default value |
---|---|---|
types? | string [] | undefined |
codecs? | string [] | undefined |
firstOnly | boolean | false |
Returns
undefined
| string
| string
[]
Defined in
webgi/src/extras/canvas_recorder/CanvasMediaRecorder.ts:173
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
isRecording
▸ isRecording(): boolean
Returns
boolean
Inherited from
Defined in
webgi/src/extras/canvas_recorder/ACanvasRecorder.ts:64
setOptions
▸ setOptions(options
): void
Parameters
Name | Type |
---|---|
options | Partial <CanvasRecorderOptions > |
Returns
void
Overrides
Defined in
webgi/src/extras/canvas_recorder/CanvasMediaRecorder.ts:27
start
▸ start(): void
Returns
void
Overrides
Defined in
webgi/src/extras/canvas_recorder/CanvasMediaRecorder.ts:38
requestFrame
▸ requestFrame(): boolean
Returns
boolean
Overrides
Defined in
webgi/src/extras/canvas_recorder/CanvasMediaRecorder.ts:98
pause
▸ pause(): void
Returns
void
Overrides
Defined in
webgi/src/extras/canvas_recorder/CanvasMediaRecorder.ts:108
stop
▸ stop(recordingCallback
): void
Parameters
Name | Type |
---|---|
recordingCallback | (b : Blob ) => void |
Returns
void
Overrides
Defined in
webgi/src/extras/canvas_recorder/CanvasMediaRecorder.ts:120
dispose
▸ dispose(): void
Returns
void
Overrides
Defined in
webgi/src/extras/canvas_recorder/CanvasMediaRecorder.ts:135
_setOptions
▸ Protected
_setOptions(value
): void
Parameters
Name | Type |
---|---|
value | Partial <CanvasRecorderOptions > |
Returns
void
Overrides
Defined in
webgi/src/extras/canvas_recorder/CanvasMediaRecorder.ts:8
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
Constructors
constructor
• new CanvasMediaRecorder(canvas
, options?
)
Parameters
Name | Type |
---|---|
canvas | HTMLCanvasElement |
options? | Partial <CanvasRecorderOptions > |