setMaxVoiceDuration

public void setMaxVoiceDuration(int maxVoiceDuration)

The protocol stack supports a default max message size of 128K; exceeding this limit may cause socket disconnection. Normal voice messages longer than 60s exceed the size limit, causing disconnection. To avoid these issues, this API is uniformly deprecated.

Deprecated

This API is deprecated.

Parameters

maxVoiceDuration

maximum voice duration.