registerExtension abstract method
Future<void>
registerExtension({
- required String provider,
- required String extension,
- 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.
providerThe name of the extension provider.extensionThe name of the extension.typeSource 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});