Skip to content

Commit

Permalink
fix: Fix MediaEngineImpl.unregisterAudioFrameObserver not unregister …
Browse files Browse the repository at this point in the history
…eventhandler internally (#1495)

Wrong call `irisMethodChannel.registerEventHandler` inside
`MediaEngineImpl.unregisterAudioFrameObserver`, it should be
`irisMethodChannel.unregisterEventHandler`
  • Loading branch information
littleGnAl authored Jan 13, 2024
1 parent c5c8aeb commit 7edcd59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/impl/agora_media_engine_impl_override.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 7edcd59

Please sign in to comment.