flutter-webrtc icon indicating copy to clipboard operation
flutter-webrtc copied to clipboard

[Mac, iPad, iPhone] enumerateDevices does not load audio outputs

Open ollyde opened this issue 3 years ago • 4 comments

Flutter 3.0.5

Calling this function await navigator.mediaDevices.enumerateDevices()

Does not produce audio outputs

182596861-798ed604-951a-4d02-aa84-3b638ba88ebd

We have no way to switch audio-outputs for multiple reasons

Think apps that play media (very common)
Apps that do WebRTC
Apps that are music players
Etc

!!! Have not tested on Windows/Android or Web

I wasn't sure if this was a native flutter issue or this library, so also logged it here: https://github.com/flutter/flutter/issues/108874

ollyde avatar Aug 03 '22 12:08 ollyde

This PR fixes audio outputs device enumeration on macOS/Windows/Android.

https://github.com/flutter-webrtc/flutter-webrtc/pull/1030

cloudwebrtc avatar Aug 03 '22 12:08 cloudwebrtc

This PR fixes audio outputs device enumeration on macOS/Windows/Android.

#1030

@cloudwebrtc Wondering why iOS is not here. Does device enumeration work out-of-the-box for iOS?

Thanks.

bfamzz avatar Aug 03 '22 16:08 bfamzz

@BFamzz Not yet implemented on iOS

https://github.com/webrtc-sdk/webrtc/blob/m104_release/sdk/objc/native/src/audio/audio_device_ios.mm#L1204

cloudwebrtc avatar Aug 04 '22 03:08 cloudwebrtc

Alright @cloudwebrtc

Thanks.

bfamzz avatar Aug 04 '22 07:08 bfamzz