setExtensionProviderProperty abstract method

Future<void> setExtensionProviderProperty({
  1. required String provider,
  2. required String key,
  3. required String value,
})

Sets the properties of the extension provider.

You can call this method to set the attributes of the extension provider and initialize the relevant parameters according to the type of the provider. Call this method after enableExtension, and before enabling the audio (enableAudio / enableLocalAudio) or the video (enableVideo / enableLocalVideo).

  • provider The name of the extension provider.
  • key The key of the extension.
  • value The value of the extension key.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> setExtensionProviderProperty(
    {required String provider, required String key, required String value});