diff --git a/lib/src/impl/agora_media_engine_impl_override.dart b/lib/src/impl/agora_media_engine_impl_override.dart index ad84fe6ba..f46ff6a44 100644 --- a/lib/src/impl/agora_media_engine_impl_override.dart +++ b/lib/src/impl/agora_media_engine_impl_override.dart @@ -70,7 +70,7 @@ class MediaEngineImpl extends media_engine_impl_binding.MediaEngineImpl final eventHandlerWrapper = AudioFrameObserverWrapper(observer); final param = createParams({}); - await irisMethodChannel.registerEventHandler( + await irisMethodChannel.unregisterEventHandler( ScopedEvent( scopedKey: _mediaEngineScopedKey, registerName: 'MediaEngine_registerAudioFrameObserver',