Visualiser Options

Here is a list of the configuration options:

PropertyDescriptionDefault
typePossible options are vertical, horizontal, spectrum, vu, vu-horizontalvertical
barsNumber of bars for ther VU meter.25
smoothingFactorSmoothing factor for the movement of the bars0.15
usemediadeviceEnable mediadevice capture for autoplay hacks.false
dbRangeMinThe min DB range for the VU meter readings.-43
tickRangeThe DB range for the tick values for the VU meter.6
meterContainerSelector for an external meter container ie .peak-meter
useWorkersEnable or disable using web workers which is recommended but requires HTTPS.true
measureSourceMeasure the source audio that is unaffected by gainfalse
thresholdColorsCustomise the colors of the DB thresholds for the VU Meter{ "0": "#ff0000", "3": "#ffa500", "10": "#ffff00", "43": "#10ff00" }

Player API Methods

MathodDescriptionArguments
resumeAutoplayContextResumes audio contexts and unmutes video elements.

Player Events

MathodDescriptionArguments
enablecontextAudio contexts are suspended and notify for user gesture when autoplaying.
mediadevicenotifyNotify the user when promoting to temporarily accept microphone devices.permissions Permission api object if set.
mediadevicecompleteRequesting the device is complete. Called when first prompting.
contextchangeNotify audio context changes.state The audio context state.
captureddeviceNotification a temporary device has been captured for the autoplay work around.