setEncryptionSecret abstract method

  1. @Deprecated('Please use the enableEncryption method instead.')
Future<void> setEncryptionSecret(
  1. String secret
)

Enables built-in encryption with an encryption password before users join a channel. Do not use this method for CDN live streaming. For optimal transmission, ensure that the encrypted data size does not exceed the original data size + 16 bytes. 16 bytes is the maximum padding size for AES encryption. Before joining the channel, you need to call this method to set the secret parameter to enable the built-in encryption. All users in the same channel should use the same secret. The secret is automatically cleared once a user leaves the channel. If you do not specify the secret or secret is set as null, the built-in encryption is disabled. Deprecated: Please use the enableEncryption method instead.

Param secret The encryption password.

Implementation

@Deprecated('Please use the enableEncryption method instead.')
Future<void> setEncryptionSecret(String secret);