Audio feature
Audioâ
An audio feature is a little player for mp3s. You can link to any mp3 and we'll try and stream it.

Editorâ
![[audio]editor_v8.1.png](/assets/images/[audio]editor_v8.1-be5d9ec0af46f8a5a9e4d77c2b162710.png)
Spriteâ
Display a smaller audio element
Streamingâ
Streams the audio directly, without trying to proxy it through our servers. Should make audio play faster, but if you have weird referrer rules on hosting server this might not work.
Autoplayâ
As soon as someone enters your parcel, start playing this audio. (With great power comes great responsibility).
Loopâ
Loop the audio forever.
Spatial rolloff factorâ
How quickly the sound fades away as the player moves away from the audio player. Value between 0 and 5.
Volumeâ
How loud should the audio play Value between 0 and 1.
URLâ
Links must be https:// since we force https:// for everything.
Scripting Propertiesâ
Scripting Properties {.tabset}â
urlâ
String.; Links must be https:// and must finish with an audio extension such as .mp3
get()â
feature.get('url')
// returns: "https://..."
set()â
feature.set({'url':"https://www.myurl.com/file.mp3"})
defaultâ
""
spriteâ
Boolean.
get()â
feature.get('sprite')
// returns: false
set()â
feature.set({'sprite': true})
defaultâ
false
streamingâ
Boolean.
get()â
feature.get('streaming')
// returns: false
set()â
feature.set({'streaming': true})
defaultâ
false
autoplayâ
Boolean.
get()â
feature.get('autoplay')
// returns: false
set()â
feature.set({'autoplay': true})
defaultâ
false
loopâ
Boolean.
get()â
feature.get('loop')
// returns: false
set()â
feature.set({'loop': true})
defaultâ
false
rolloffFactorâ
double; Value ranging from 0 to 5
get()â
feature.get('rolloffFactor')
// returns: 1.6
set()â
feature.set({'rolloffFactor': 1.6})
defaultâ
1.6
volumeâ
double; Value ranging from 0 to 1
get()â
feature.get('volume')
// returns: 0.5
set()â
feature.set({'volume': 0.5})
defaultâ
0.5
typeâ
String;
get()â
feature.get('type')
/* or */
feature.type
// returns: 'audio'
Scripting Methodsâ
Scripting Methods {.tabset}â
play()â
feature.play()
plays the audio
pause()â
feature.pause()
pauses the audio
stop()â
feature.stop()
stops the audio