[BUG]: IOS can't register flutterSoundPlayerManager or flutterSoundRecorderManager
See original GitHub issueFlutter Sound Version : ^7.7.0+1
-
FULL or LITE flavor ? FULL
-
Important: Result of the command :
flutter pub deps | grep flutter_sound
Severity
Crash ? It crashes every time I try to initialize player or recorder. In the console is being triggered the follow messages:
- ERROR during registerWithRegistrar: flutterSoundPlayerManager != nil
- ERROR during registerWithRegistrar: flutterSoundRecorderManager != nil
Platforms you faced the error
- iOS ? It happens on iOS Emulator
Describe the bug It is failing at registering the plugin for ios, it gets the follow messages in console: ERROR during registerWithRegistrar: flutterSoundPlayerManager != nil ERROR during registerWithRegistrar: flutterSoundRecorderManager != nil
The app builds and runs well, but when I try to initialize the player or the recorder, it crashes.
Logs!!!
(This is very important. Most of the time we cannot do anything if we do not have information on your bug) At the beginning it throws the follow messages:
- ERROR during registerWithRegistrar: flutterSoundPlayerManager != nil
- ERROR during registerWithRegistrar: flutterSoundRecorderManager != nil
When I try to initialize the recorder or player it throws:
- flutter: FS:—> openAudioSession
- flutter: —> openAudioSession
- flutter: Resetting flutter_sound Recorder Plugin
- @resetPlugin
- iOS: —> resetPlugin
- iOS: <— resetPlugin
Then It crashes
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:5 (2 by maintainers)
Top Results From Across the Web
[BUG] Recorder not working · Issue #517 - GitHub
Flutter Sound Recorder started and not null and behaves as expected on iOS simulator. ... Managing asynchronous processing is really tough.
Read more >flutter_sound | Flutter Package - Pub.dev
iOS ; Flutter Web. Flutter Sound provides both a high level API and widgets for: play audio; record audio. Flutter Sound can be ......
Read more >Audio recording works on iOS emulator but not on the actual ...
I asked the flutter-sound author on github already, but it seems he doesn't really know what's wrong either, and the fact that it...
Read more >Creating a Flutter audio player and recorder app
Recording audio has become a vastly used feature of many modern apps. From apps created to help users record and take notes during...
Read more >A Complete Api for Audio Playback and Recording with Flutter
Flutter Sound is a Flutter package allowing you to play and record audio for : Android; iOS; Flutter Web. Maybe, one day, we...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am getting the same logs:
flutter: FS:—> openAudioSession flutter: —> openAudioSession flutter: Resetting flutter_sound Recorder Plugin @resetPlugin iOS: —> resetPlugin iOS: <— resetPlugin
As soon as it hits the line
I followed the simple_recorder.dart example in ^7.7.0.
Flutter Sound 8.1.4 is released and integrates a Pull Request kindly provided by @touficzayed .