Comments (9)
That is not necessary, because you said the official example already reproduces the bug. I have the official example, I can just use that without using your code.
Still, I need your flutter doctor output because when I run the official example, I don't see the problems you are seeing.
from audio_session.
Does this also happen on the official example in this repository?
from audio_session.
Yes it does crash @ryanheise
from audio_session.
How about on an actual device? I want to rule out perhaps an issue with your development environment.
from audio_session.
Currently experiencing it on production on all ios devices
Fatal Exception: FlutterError
PlatformException(2003329396, The operation couldn’t be completed. (OSStatus error 2003329396.), null, null). Error thrown null.
from audio_session.
flutter doctor?
from audio_session.
Our use case
@override
void initState() {
super.initState();
WidgetsBinding.instance.addPostFrameCallback((_) {
initAudiManager();
});
}
void initAudiManager() {
try {
AudioSession.instance.then((audioSession) async {
// This line configures the app's audio session, indicating to the OS the
// type of audio we intend to play. Using the "speech" recipe rather than
// "music" since we are playing a podcast.
audioSession.devicesChangedEventStream.listen((event) {
Logger().i('Devices added: ${event.devicesAdded}');
Logger().i('Devices removed: ${event.devicesRemoved}');
});
await audioSession.configure(const AudioSessionConfiguration.music());
});
} catch (e) {
// fail silently
Logger().e(e);
}
}
from audio_session.
flutter doctor -v
[✓] Flutter (Channel stable, 3.0.4, on macOS 12.4 21F79 darwin-arm, locale en-KE)
• Flutter version 3.0.4 at /Users/..../Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 85684f9300 (6 weeks ago), 2022-06-30 13:22:47 -0700
• Engine revision 6ba2af10bb
• Dart version 2.17.5
• DevTools version 2.12.2
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at /Users/..../Android/sdk
• Platform android-33, build-tools 33.0.0
• ANDROID_HOME = /Users/...../Android/sdk
• Java binary at: /Users/...../Java/JavaVirtualMachines/corretto-11.0.15/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment Corretto-11.0.15.9.1 (build 11.0.15+9-LTS)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] IntelliJ IDEA Community Edition (version 2022.1.4)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 69.0.4
• Dart plugin version 221.6008.17
[✓] VS Code (version 1.69.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.46.0
[✓] Connected device (3 available)
• iPhone (mobile) • 0c933f990e1f489c392e99c34f82c96643095f64 • ios • iOS 15.6 19G71
• macOS (desktop) • macos • darwin-arm64 • macOS 12.4 21F79 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 104.0.5112.79
! Error: iPhone is busy: Fetching debug symbols for iPhone. Xcode will continue when iPhone is finished. (code -10)
[✓] HTTP Host Availability
• All required HTTP hosts are available
! Doctor found issues in 1 category.
from audio_session.
Thanks, I'll check later whether my versions match yours.
from audio_session.
Related Issues (20)
- Can't build on android when targetting android 34 HOT 11
- Add privacy manifest for Apple HOT 6
- [iOS] Background audio not playing on iPhone 13+ HOT 3
- AVAudioSessionCategoryOptions.mixWithOthers stops background music the first time when audio is player, after continuing the music further sounds no longer stop the music HOT 1
- Call requires API level 23 (current min is 16) HOT 1
- Can not play by speaker on iOS HOT 3
- Is it possible to play audio when Do Not Disturb mode is on, but not in silent mode? HOT 1
- `AVAudioSessionCategoryOptions`'s `contains` method takes `AVAudioSessionInterruptionOptions`. Maybe it should be `AVAudioSessionCategoryOptions`? HOT 5
- Dependency causing an ANR in the Background HOT 3
- The music played by IOS17 is not output from Bluetooth earphones HOT 2
- Android detects the headset as if it is connected even if it is not HOT 1
- Trouble closing an audio session HOT 1
- Echo cancellation HOT 3
- Can't get current audio device HOT 1
- failed for task ':audio_session:compileReleaseJavaWithJavac' (target SDK 33) HOT 1
- AudioSessionConfiguration with multiple categories causes PlatformException(-50)
- Execution failed for task ':audio_session:compileDebugJavaWithJavac'
- [Question] Can audio playback be started while app is in the background in IOS? HOT 1
- file or directory '/home/user/.pub-cache/hosted/pub.dev/audio_session-0.1.19/android/src/debug/java', not found
- java issue to even run the project
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 audio_session.