> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# useReceiveSettings

> Convenience hook around getReceiveSettings() and updateReceiveSettings().

`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`](https://docs.daily.co/reference/daily-js/events/settings-events#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()`](https://docs.daily.co/reference/daily-js/instance-methods/update-receive-settings) for an overview of receive settings.

**updateReceiveSettings** `Function`

Updates receive settings, equivalent to calling the `daily-js` [`updateReceiveSettings()`](https://docs.daily.co/reference/daily-js/instance-methods/update-receive-settings) method.

> [!WARNING]
>
> Any calls to `updateReceiveSettings()` before the meeting is joined will be silently ignored.

> [!NOTE]
>
> The join-time-only [`initialReceiveBitrate`](https://docs.daily.co/reference/daily-js/types/daily-call-options#param-receive-settings) field can't be set with this hook. Pass it in the `receiveSettings` of your [`DailyProvider`](https://docs.daily.co/reference/daily-react/daily-provider) props or `join()` call options instead.

## Example

```jsx theme={null}
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

> [card] daily-js methods
>
> * [getReceiveSettings()](https://docs.daily.co/reference/daily-js/instance-methods/get-receive-settings.md)
> * [updateReceiveSettings()](https://docs.daily.co/reference/daily-js/instance-methods/update-receive-settings.md)

> [card] Events
>
> * [receive-settings-updated](https://docs.daily.co/reference/daily-js/events/settings-events.md#receive-settings-updated)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.