Media |
The MediaInactivityTimeoutConfig type exposes the following members.
| Name | Description | |
|---|---|---|
| AudioOnHoldTimeoutSeconds | Maximum allowed time without receiving RTP packets while the call is on hold, measured in seconds. Set to 0 to disable timeout checks during hold. This value should always be greater than AudioTimeoutSeconds, because the on-hold state is expected to tolerate longer periods of silence. | |
| AudioStartupGraceSeconds | Grace period in seconds before timeout checks start. Useful to avoid false positives during startup. | |
| AudioTimeoutSeconds | Maximum allowed time without receiving RTP packets, measured in seconds. Set to 0 to disable timeout checks during a call. | |
| CountRtcpAsActivity | Determines whether RTCP (control) packets are considered activity for timeout checks. If true, the most recent RTCP packet can reset the timeout timer. If false, only RTP packets are used. This is important for codecs like Opus with DTX enabled, where silence produces no RTP but RTCP packets may still flow. |