GitHub

Source

useTrackVolume

Note

This feature is experimental and may change or be removed based on developer feedback and real-world usage.

Hook for tracking the volume of an audio track using the Web Audio API.

Import

import { useTrackVolume } from "@livekit/components-react";

Properties

trackOrTrackReferenceLocalAudioTrack | RemoteAudioTrack | TrackReferenceOptional

Returns

number;