Skip to main content
useSendSettings(params?): Object Use this hook to configure simulcast layer encodings and control which layers a client publishes. See updateSendSettings() for the full options.

Parameters (optional)

onSendSettingsUpdated
Function
Callback for the 'send-settings-updated' event.

Return value

Returns an object with the following properties:
sendSettings
DailySendSettings | null
The send settings for the participant. See daily-js instance method getSendSettings() for an overview.
updateSendSettings
Function
Updates send settings, equivalent to calling the daily-js updateSendSettings() method.

Example

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

export const SendSettings = () => {
  const { sendSettings } = useSendSettings();
  return (
    <div>
      <strong>Current send settings</strong>
      <pre>{JSON.stringify(sendSettings, null, 2)}</pre>
    </div>
  );
};

See also