@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.
18 lines (17 loc) • 966 B
TypeScript
import { DailyEventObject } from '@daily-co/daily-js';
interface UseActiveParticipantArgs {
/**
* If set to true, useActiveParticipant will never return the local participant.
*/
ignoreLocal?: boolean;
/**
* Optional event callback for [active-speaker-change](https://docs.daily.co/reference/daily-js/events/meeting-events#active-speaker-change) event listener.
*/
onActiveSpeakerChange?(ev: DailyEventObject<'active-speaker-change'>): void;
}
/**
* Returns the most recent participant mentioned in an [active-speaker-change](https://docs.daily.co/reference/daily-js/events/meeting-events#active-speaker-change) event.
* @deprecated Use [useActiveSpeakerId](https://docs.daily.co/reference/daily-react/use-active-speaker-id) instead.
*/
export declare const useActiveParticipant: ({ ignoreLocal, onActiveSpeakerChange, }?: UseActiveParticipantArgs) => import("../DailyParticipants").ExtendedDailyParticipant | null;
export {};