Constructor
new AmbientSoundData(data, documentopt)
- See:
-
- BaseAmbientSound
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
_id |
string | The _id which uniquely identifies this AmbientSound document |
||
name |
string | The name of this sound track |
||
path |
string | The audio file path that is played by this sound |
||
playing |
boolean |
<optional> |
false
|
Is this sound currently playing? |
repeat |
boolean |
<optional> |
false
|
Does this sound loop? |
volume |
number |
<optional> |
0.5
|
The audio volume of the sound, from 0 to 1 |
flags |
object |
<optional> |
{}
|
An object of optional key/value flags |
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
object | Initial data used to construct the data object |
|
document |
BaseAmbientSound |
<optional> |
The document to which this data object belongs |
Extends
- DocumentData