@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) • 789 B
TypeScript
interface UseActiveSpeakerIdArgs {
/**
* Anytime the active-speaker-change event emits a new id, this callback can be used
* to determine if the new speaker id should be ignored or not.
* Return false from the callback to ignore the new speaker id in this hook's instance.
*/
filter?(id: string | null): boolean;
/**
* If set to true, useActiveParticipant will never return the local participant.
*/
ignoreLocal?: boolean;
}
/**
* Returns the most recent speaker id mentioned in an [active-speaker-change](https://docs.daily.co/reference/daily-js/events/meeting-events#active-speaker-change) event.
*/
export declare const useActiveSpeakerId: ({ filter, ignoreLocal, }?: UseActiveSpeakerIdArgs) => string | null;
export {};