useSendSettings

useSendSettings(params?): Object

useSendSettings is a convenience hook around getSendSettings() and updateSendSettings(). Use this hook to configure simulcast layer encodings and to control which layers a client publishes. More information in the updateSendSettings() docs

Params (optional)

ParameterTypeDescription
onSendSettingsUpdatedFunctionCallback for the 'send-settings-updated' event

Return type

Returns an object with the following properties:

NameTypeDescription
sendSettingsDailySendSettings | nullThe send settings for the participant. See daily-js instance method getSendSettings() for an overview
updateSendSettingsFunctionUpdates send settings, equivalent to calling the daily-js updateSendSettings() method

Sample code