PublisherKit.AudioLevelListener
Copy
public abstract static interface AudioLevelListener
Enclosing class: PublisherKit
Monitors changes in the audio level of the publisher.
Methods
| Name | Description |
|---|---|
onAudioLevelUpdated(publisher, audioLevel) |
Called periodically to report the audio level of the publisher. |
onAudioLevelUpdated(publisher, audioLevel)
Called periodically to report the audio level of the publisher.
Parameters:
| Name | Type | Description |
|---|---|---|
publisher |
PublisherKit | The publisher. |
audioLevel |
float | The audio level, from 0 to 1.0. Adjust this value logarithmically for use in a user interface visualization (such as a volume meter). |