diff --git a/just_audio/darwin/Classes/AudioPlayer.m b/just_audio/darwin/Classes/AudioPlayer.m index b6fcc36..7bb0d1c 100644 --- a/just_audio/darwin/Classes/AudioPlayer.m +++ b/just_audio/darwin/Classes/AudioPlayer.m @@ -1157,7 +1157,9 @@ if (_processingState != none) { [_player pause]; _processingState = none; - [self broadcastPlaybackEvent]; + // If used just before destroying the current FlutterEngine, this will result in: + // NSInternalInconsistencyException: 'Sending a message before the FlutterEngine has been run.' + //[self broadcastPlaybackEvent]; } if (_timeObserver) { [_player removeTimeObserver:_timeObserver];