setSrtpPolicy method
Sets the SRTP (Secure Real-time Transport Protocol) policy.
Controls how SRTP is used for call encryption. Should be called after register and before making calls.
Parameters:
policy: SRTP policy value:- 0: None (no SRTP, unencrypted RTP)
- 1: Prefer (prefer SRTP but allow non-SRTP if peer doesn't support it)
- 2: Force (require SRTP, fail if peer doesn't support it)
Returns 0 on success, negative error code on failure.
Implementation
Future<int> setSrtpPolicy({required int policy}) async {
throw UnimplementedError('setSrtpPolicy has not been implemented.');
}