Comments (3)
The issue is in the plugin. It is related to deactivating the audioSession before stopping. Just swap the order of the calls to fix the problem. Like so...
diff --git a/ios/Classes/AudioCapture.swift b/ios/Classes/AudioCapture.swift
index 3f4bad19..0545ac31 100644
--- a/ios/Classes/AudioCapture.swift
+++ b/ios/Classes/AudioCapture.swift
@@ -61,7 +61,7 @@ class AudioCapture {
public func stopSession() throws {
let audioSession: AVAudioSession = AVAudioSession.sharedInstance()
- try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
audioEngine.stop()
+ try audioSession.setActive(false, options: .notifyOthersOnDeactivation)
}
}
from flutter_audio_capture.
Merged #4, I'll publish new pub in a while.
from flutter_audio_capture.
Updated 😄
https://pub.dev/packages/flutter_audio_capture/versions/0.0.3
from flutter_audio_capture.
Related Issues (19)
- Data format HOT 2
- Several files should be excluded from version control HOT 3
- Flutter audio capture disappears HOT 5
- Don`t work with iOS version 12.1 HOT 2
- Can't build in release mode HOT 4
- using .defaultToSpeaker causes audio session initialization problems on iPhone. HOT 24
- dependency were found, but they required a higher minimum deployment target HOT 11
- 1.1.1, 1.1.2, 1.1.3 are not working on iOS HOT 4
- Error on versions below Android 9 (API 28) HOT 2
- Android Kotlin Dependency Issue HOT 2
- Consider making `FlutterAudioCapture.start`'s arg types more specific
- Error when calling stoping the recording HOT 7
- [BUG?] Doesn't work on Android HOT 1
- Opening app with flutter_audio_capture on IOS stops music
- 2 seconds delay on Linux
- iOS error: message sent on non-platform thread
- ios crash Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: IsFormatSampleRateAndChannelCountValid(format)
- Build error on targetSdkVersion 34
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_audio_capture.