registerExtension abstract method

Future<void> registerExtension({
  1. required String provider,
  2. required String extension,
  3. MediaSourceType type = MediaSourceType.unknownMediaSource,
})

Registers an extension.

For extensions external to the SDK (such as those from Extensions Marketplace and SDK Extensions), you need to load them before calling this method. Extensions internal to the SDK (those included in the full SDK package) are automatically loaded and registered after the initialization of RtcEngine.

  • provider The name of the extension provider.
  • extension The name of the extension.
  • type Source type of the extension. See MediaSourceType.

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> registerExtension(
    {required String provider,
    required String extension,
    MediaSourceType type = MediaSourceType.unknownMediaSource});