Interface: SoundRecorderOptions
Extends
Properties
alpha?
optionalalpha:number
Opacity of the node. 0 is fully transparent, 1 is fully opaque. Default is 1.0. Alpha has multiplicative inheritance. For example, if the node's parent is alpha .5 and this node's is alpha .4, then the node will appear with alpha .2.
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:12
audioTrackConstraints?
optionalaudioTrackConstraints:MediaTrackConstraints
Additional audio constraints to be applied when requesting the audio device. see https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints
Remarks
Use with caution. All kinds of constraints may not be supported on all browsers, and specifying too restrictive constraints will result in no available user audio device and an exception. Unusual constraints may also result in an unexpected device being selected.
Example
audioTrackConstraints: {
channelCount: 1,
noiseSuppression: { ideal: true },
}
Defined in
m2c2kit/packages/core/src/SoundRecorderOptions.ts:22
backupMimeTypes?
optionalbackupMimeTypes:string[]
Additional MIME types to use for recording audio, in order of preference, if preferred type is not supported. ["audio/webm", "audio/mp4"] is recommended.
Defined in
m2c2kit/packages/core/src/SoundRecorderOptions.ts:7
draggable?
optionaldraggable:boolean
Can the node be dragged?
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:18
hidden?
optionalhidden:boolean
Is the node, and its children, hidden? (not displayed). Default is false
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:20
isUserInteractionEnabled?
optionalisUserInteractionEnabled:boolean
Does the node respond to user events, such as taps? Default is false
Inherited from
M2NodeOptions.isUserInteractionEnabled
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:16
layout?
optionallayout:Layout
FOR INTERNAL USE ONLY
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:22
maximumDuration?
optionalmaximumDuration:number
Maximum duration, in milliseconds, to allow recording. If recording lasts longer than this duration, it will automatically be paused. This can be used to prevent excessively long recording and memory usage.
Defined in
m2c2kit/packages/core/src/SoundRecorderOptions.ts:9
mimeType?
optionalmimeType:string
Preferred MIME type to use for recording audio. audio/webm or audio/mp4 is recommended. If omitted, it will use any MIME type supported by the device.
Defined in
m2c2kit/packages/core/src/SoundRecorderOptions.ts:5
name?
optionalname:string
Name of the node. Only needed if the node will be referred to by name in a later function
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:6
position?
optionalposition:Point
Position of the node within its parent coordinate system. Default is (0, 0)
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:8
scale?
optionalscale:number
Scale of the node. Default is 1.0
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:10
suppressEvents?
optionalsuppressEvents:boolean
Should the node not emit events to the EventStore? Default is false.
Remarks
This property is for use by authors of Composite nodes. It is not intended for general use.
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:27
uuid?
optionaluuid:string
Internal
Unique identifier (UUID). Will be generated automatically. For m2c2kit library use only
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:24
zRotation?
optionalzRotation:number
Rotation of the node around the Z axis. Unit is radians. Default is 0 (no rotation). zRotation has inheritance. In addition to this node's zRotation, all ancestors' zRotations will be applied.
Inherited from
Defined in
m2c2kit/packages/core/src/M2NodeOptions.ts:14