An audio feature is a little player for mp3s. You can link to any mp3 and we'll try and stream it.
Display a smaller audio element
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.
As soon as someone enters your parcel, start playing this audio. (With great power comes great responsibility).
Loop the audio forever.
How quickly the sound fades away as the player moves away from the audio player.
Value between 0 and 5.
How loud should the audio play
Value between 0 and 1.
Links must be https://
since we force https:// for everything.
String.
; Links must be https://
and must finish with an audio extension such as .mp3
feature.get('url')
// returns: "https://..."
feature.set({'url':"https://www.myurl.com/file.mp3"})
""
Boolean.
feature.get('sprite')
// returns: false
feature.set({'sprite': true})
false
Boolean.
feature.get('streaming')
// returns: false
feature.set({'streaming': true})
false
Boolean.
feature.get('autoplay')
// returns: false
feature.set({'autoplay': true})
false
Boolean.
feature.get('loop')
// returns: false
feature.set({'loop': true})
false
double
; Value ranging from 0 to 5
feature.get('rolloffFactor')
// returns: 1.6
feature.set({'rolloffFactor': 1.6})
1.6
feature.play()
plays the audio
feature.pause()
pauses the audio
feature.stop()
stops the audio