CallSettings
Call settings with additional call parameters, such as the preferred video codec, custom data, extra headers, etc.
Props
customData
Custom string associated with a call session.
It can be passed to the cloud to be obtained from the CallAlerting event or Call History via Management API.
Maximum size is 200 bytes.
Use the Call.sendMessage method to pass a string over the limit; in order to pass a large data use media_session_access_url on your backend.
extraHeaders
Optional set of headers to be sent to the Voximplant cloud. Names should begin with “X-” to be processed by SDK.
preferredVideoCodec
Preferred video codec for a particular call that these settings are applied to.
The default value is VideoCodec.Auto.
receiveVideo
Whether video receiving is enabled in a call.
The default value is false.
If the call is started without video and the user enables video in an active call via the Call.addStream API, enables video receiving.
reportStats
Whether the CallStatsReport event should be triggered for a call.
The default value is false.
statsReportInterval
Call statistics collection interval in milliseconds.
The default value is 1000.
The interval value should be multiple of 500, otherwise the provided value is rounded to a less value that is multiple of 500.
To receive the CallStatsReport event, CallSettings.reportStats should be set to true.