Code Monkey home page Code Monkey logo

Comments (9)

ryanheise avatar ryanheise commented on July 21, 2024 1

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.

ryanheise avatar ryanheise commented on July 21, 2024

Does this also happen on the official example in this repository?

from audio_session.

iampato avatar iampato commented on July 21, 2024

Yes it does crash @ryanheise

from audio_session.

ryanheise avatar ryanheise commented on July 21, 2024

How about on an actual device? I want to rule out perhaps an issue with your development environment.

from audio_session.

iampato avatar iampato commented on July 21, 2024

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.

Screenshot 2022-08-12 at 14 43 55

from audio_session.

ryanheise avatar ryanheise commented on July 21, 2024

flutter doctor?

from audio_session.

iampato avatar iampato commented on July 21, 2024

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.

iampato avatar iampato commented on July 21, 2024

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.

ryanheise avatar ryanheise commented on July 21, 2024

Thanks, I'll check later whether my versions match yours.

from audio_session.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.