new AudioVisualizer(options) → {object|null}
AudioVisualizer factory class to build all supported visualisation
This factory will return anAudioVisualizer
component. It is automatically rendered, and will also be automatically linked to given audio source. No further manipulation are required (except destroy when done using) on runtime.
Each components have shared properties, and unique properties, as described in components class themselves. Refer to the components documentation for specific options.
Multi visualisation can have an impact on CPU load that mostly depends on client configuration. Keep that in mind if you develop your project with a battle station. When done using a component, please call itsdestroy
method to remove listeners and audio processing to avoid memory leaks in your app.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | The audio visualisation definition Properties
|
- Since:
- 2020
- Source:
Returns:
- The custom visualisation component according to given options,
null
for unknown type
- Type
- object | null
Members
(static) version :string
The AudioVisualizer component version
Type:
- string
- Source: