useAudioLevelObserver(params) : void
The onVolumeChange callback runs when the observed participant’s audio level changes, letting you respond to volume changes — for example, to drive a visual indicator.
Parameters
The participant’s
sessionId for which audio level should be observed.A callback reference to run when the track’s volume level changes.
A callback reference to run when local audio level observer is not available in the current browser.
The interval in milliseconds at which the volume level is checked (minimum: 100).
Example
See also
Components
Hooks
- useMediaTrack()
- useAudioLevel() (deprecated replacement)