flutter-webrtc / flutter-webrtc

WebRTC plugin for Flutter Mobile/Desktop/Web
MIT License
4.15k stars 1.13k forks source link

Audio from ios microphone is not passing through back to the peer #1070

Open shivanshtalwar opened 2 years ago

shivanshtalwar commented 2 years ago

Describe the bug Audio(Web or anything not ios) -> Audio(IOS simulator) = working but Audio(IOS simulator) -> Audio(Web or anything not ios) = Not working tried the new audio I/O apis but they are not helping either

To Reproduce Run the example of ios and web try to establish peer to peer connection between them and you will see the issue.

Expected behavior audio should work correctly in all platforms

Platform information IOS 15.5 (Iphone 12)

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at /Users/utopia/Library/Android/sdk • Platform android-33, build-tools 33.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) • All Android licenses accepted.

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

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

[✓] Android Studio (version 2021.2) • 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.12+0-b1504.28-7817840)

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

[✓] Connected device (3 available) • iPhone 12 (mobile) • 9628AFC7-0EF1-48A3-9E43-CF63D38A363A • ios • com.apple.CoreSimulator.SimRuntime.iOS-15-5 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 12.5.1 21G83 darwin-arm • Chrome (web) • chrome • web-javascript • Google Chrome 105.0.5195.102

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

• No issues found!

DimkaSF commented 2 years ago

Maybe there is not access to the mic on IOS simulator? Did you try run your code on physical device?

shivanshtalwar commented 2 years ago

atm i don't have physical ios device but will try to obtain one and update you accordingly, thanks

gwumkt commented 2 years ago

Hi, i have the same issue and i did try from physical device with no luck

alexzh16 commented 2 years ago

On simulator work great. please check your mediaDevices.getUserMedia({'audio': true, 'video': true}) and setting on simulator device. maybe sound on min levels.

shivanshtalwar commented 2 years ago

On simulator work great. please check your mediaDevices.getUserMedia({'audio': true, 'video': true}) and setting on simulator device. maybe sound on min levels.

Nope i enabled the microphone, selected my device microphone, same code works flawlessly in android and web but only in ios audio is not going to peer from ios device which is super weird

shivanshtalwar commented 2 years ago

@cloudwebrtc kindly look into this on urgent basis

maulikchak commented 2 years ago

same issue facing on iOS device though web (Safari and chrome) I placed call to android receiver hear my voice clearly but can't get receiver voice back on iOS device also

Android to Android = Worked Android (Web) to Android = Worked iOS (web) to Android/iOS = not Worked

maulikchak commented 1 year ago

1170