Open dujj opened 2 years ago
-FULL
Describe the bug FlutterEngineGroup create FlutterEngine, record audio is success, but play audio is failed.
review flutter_sound code in iOS, found that: in FlutterSoundPlayerManager.mm register plugin with: `
(void)registerWithRegistrar:(NSObject)registrar { FlutterMethodChannel aChannel = [FlutterMethodChannel methodChannelWithName:@"com.dooboolab.flutter_sound_player" binaryMessenger:[registrar messenger]]; if (flutterSoundPlayerManager != nil) { NSLog(@"ERROR during registerWithRegistrar: flutterSoundPlayerManager != nil"); return; }
flutterSoundPlayerManager = [[FlutterSoundPlayerManager alloc] init]; flutterSoundPlayerManager ->channel = aChannel; [registrar addMethodCallDelegate: flutterSoundPlayerManager channel: aChannel];
} `
in FlutterSoundRecorderManager.mm register plugin with: `
compare result:
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.
Flutter Sound Version : 8.4.2
-FULL
flutter pub deps | grep flutter_sound |-- flutter_sound 8.4.2 | |-- flutter_sound_platform_interface 8.4.2 | |-- flutter_sound_web 8.4.2 | | |-- flutter_sound_platform_interface...
Severity
Platforms you faced the error
iOS
Describe the bug FlutterEngineGroup create FlutterEngine, record audio is success, but play audio is failed.
review flutter_sound code in iOS, found that: in FlutterSoundPlayerManager.mm register plugin with: `
(void)registerWithRegistrar:(NSObject)registrar
{
FlutterMethodChannel aChannel = [FlutterMethodChannel methodChannelWithName:@"com.dooboolab.flutter_sound_player"
binaryMessenger:[registrar messenger]];
if (flutterSoundPlayerManager != nil)
{
NSLog(@"ERROR during registerWithRegistrar: flutterSoundPlayerManager != nil");
return;
}
} `
in FlutterSoundRecorderManager.mm register plugin with: `
compare result:
if (flutterSoundRecorderManager != nil)` FlutterSoundPlayerManager will return ,but FlutterSoundRecorderManager not . so record audio success, but play failed.