new require("lyria/audio")(options)
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Source:
- Source:
Requires
- module:root
- module:jquery
Methods
-
attr(prop, value)
-
Sets or gets properties of the audio object
Parameters:
Name Type Description prop
Object value
Object (optional)
- Source:
-
play(loop)
-
Parameters:
Name Type Description loop
String amount of loops this song should be played (-1 if unlimited)
- Source: