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)
| Parameter | Type | Description |
|---|---|---|
onSendSettingsUpdated | Function | Callback for the 'send-settings-updated' event |
Return type
Returns an object with the following properties:
| Name | Type | Description |
|---|---|---|
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 |