Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper.setSpeakerphoneOn not working #1290

Open
darwin-morocho opened this issue Mar 14, 2023 · 11 comments
Open

Helper.setSpeakerphoneOn not working #1290

darwin-morocho opened this issue Mar 14, 2023 · 11 comments

Comments

@darwin-morocho
Copy link

Describe the bug
For a p2p call by default the audio output is on Speakers, I want to disable that using Helper.setSpeakerphoneOn(false); but that is not working

To Reproduce
call to Helper.setSpeakerphoneOn(false);

Expected behavior
Audio output must be earphones

Platform information
ios 16.3.1

  • Flutter version:
flutter doctor -v
[✓] Flutter (Channel stable, 3.7.5, on macOS 13.2 22D49 darwin-arm64, locale
    es-419)
    • Flutter version 3.7.5 on channel stable at
      /Users/darwinmorocho/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c07f788888 (3 weeks ago), 2023-02-22 17:52:33 -0600
    • Engine revision 0f359063c4
    • Dart version 2.19.2
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version
    33.0.0-rc2)
    • Android SDK at /Users/darwinmorocho/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0-rc2
    • ANDROID_HOME = /Users/darwinmorocho/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] VS Code (version 1.76.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.60.0

[✓] Connected device (4 available)
    • sdk gphone64 arm64 (mobile)          • emulator-5554             •
      android-arm64  • Android 12 (API 32) (emulator)
    • iPhone 14 pro max de Darwin (mobile) • 00008120-00064DA92633401E • ios
      • iOS 16.3.1 20D67
    • macOS (desktop)                      • macos                     •
      darwin-arm64   • macOS 13.2 22D49 darwin-arm64
    • Chrome (web)                         • chrome                    •
      web-javascript • Google Chrome 107.0.5304.87
    ! Error: Apple Watch de Darwin needs to connect to determine its
      availability. Check the connection between the device and its companion
      iPhone, and the connection between the iPhone and Xcode. Both devices may
      also need to be restarted and unlocked. (code 1)

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

  • Plugin version: 0.9.24
  • OS: 16.3.1
  • OS version: macOS 13.2
@lripardo
Copy link

same problem here

2 similar comments
@tianlang8279
Copy link

same problem here

@LucasMdosAnjos
Copy link

same problem here

@garfieldbear333
Copy link

garfieldbear333 commented Apr 27, 2023

same problem here
flutter_webrtc 0.9.26

@EduardoAlberti
Copy link

this is change is introducing the issue:
59f6d8d

it looks like the AVAudioSessionModeVideoChat mode forces the speakers and can't be set it off after that.

@EliasBarrera
Copy link

I have this error with the package sip_ua: ^0.5.8, any solution ?

@lripardo
Copy link

I have this error with the package sip_ua: ^0.5.8, any solution ?

My temporary solution was make a dart-sip-ua fork and downgrade pubspec.yaml flutter-webrtc package to 0.9.22 where AVAudioSessionModeVideoChat had not yet been created.

@EliasBarrera
Copy link

I have this error with the package sip_ua: ^0.5.8, any solution ?

My temporary solution was make a dart-sip-ua fork and downgrade pubspec.yaml flutter-webrtc package to 0.9.22 where AVAudioSessionModeVideoChat had not yet been created.

thank you! should i remove the dart_sip_ua package or install flutter-webrtc 0.9.22 directly?

@lripardo
Copy link

I have this error with the package sip_ua: ^0.5.8, any solution ?

My temporary solution was make a dart-sip-ua fork and downgrade pubspec.yaml flutter-webrtc package to 0.9.22 where AVAudioSessionModeVideoChat had not yet been created.

thank you! should i remove the dart_sip_ua package or install flutter-webrtc 0.9.22 directly?

flutter-webrtc does not contain the SIP stack, if you are working directly with WebRTC you can remove it without problems, otherwise, you will need a lib with SIP stack to work with a SIP server like Asterisk.

@EliasBarrera
Copy link

Do you know if there is any solution for which we use directly dart_sip_ua ?

@stwonary
Copy link

stwonary commented Jul 7, 2023

Do you know if there is any solution for which we use directly dart_sip_ua ?

my workaround:

dependencies:
  sip_ua: 0.5.8
dependency_overrides:
  flutter_webrtc: 0.9.22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants