Constructor
new PlaylistSoundData(data, documentopt)
- See:
-
- BasePlaylistSound
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
_id |
string | The _id which uniquely identifies this PlaylistSound document |
||
name |
string | The name of this sound track |
||
description |
string | The description 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? |
pausedTime |
number |
<optional> |
null
|
The time in seconds at which playback was paused |
repeat |
boolean |
<optional> |
false
|
Does this sound loop? |
volume |
number |
<optional> |
0.5
|
The audio volume of the sound, from 0 to 1 |
fade |
number |
<optional> |
A duration in milliseconds to fade volume transition |
|
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 |
BasePlaylistSound |
<optional> |
The document to which this data object belongs |
Extends
- DocumentData