UNPKG

@daily-co/daily-react

Version:

Daily React makes it easier to integrate [@daily-co/daily-js](https://www.npmjs.com/package/@daily-co/daily-js) in React applications.

11 lines (10 loc) 589 B
declare type AudioLevelCallback = (volume: number) => void; declare type ErrorCallback = (errorMsg: string) => void; /** * Observes the volume level for a given participant. * @param id The session_id of the participant to observe. * @param cb The function to execute when the volume changes. Can be used to visualise audio output. * @param errorCb Error callback. Called when local audio level observer is not available in browser. */ export declare const useAudioLevelObserver: (id: string, cb: AudioLevelCallback, errorCb?: ErrorCallback | undefined) => void; export {};