Skip to main content
useReceiveSettings(params?) : Object

Parameters (optional)

id
string
A unique identifier for the participant, defaults to base to return the base receiveSettings.
onReceiveSettingsUpdated
Function
Callback for the receive-settings-updated event.

Return value

An object with the following properties:
receiveSettings
Object
The receive settings for the participant. See daily-js instance method updateReceiveSettings() for an overview of receive settings.
updateReceiveSettings
Function
Updates receive settings, equivalent to calling the daily-js updateReceiveSettings() method.
Any calls to updateReceiveSettings() before the meeting is joined will be silently ignored.

Example

import { useReceiveSettings } from '@daily-co/daily-react';

export const UseReceiveSettingsDemo = () => {
  const receiveSettings = useReceiveSettings();

  return (
    <div>Receiving video layer {receiveSettings?.video?.layer ?? 'N/A'}</div>
  );
};

See also