Closed JayTam closed 4 years ago
Yes, there is actually something missing in Flutter Sound. Actually there is a parameter to specify the audio input on Android, but this is not OS independent. We must do something to fix that in next version.
Yes, there is actually something missing in Flutter Sound. Actually there is a parameter to specify the audio input on Android, but this is not OS independent. We must do something to fix that in next version.
Looking forward to your fix, thanks for your work 👍👍
Fixed the bug in #372
Before player/recorder start, you can switch AudioDevice by call setAudioFocus(device: xxx)
playerModule.setAudioFocus(device: AudioDevice.bluetooth);
recorderModule.setAudioFocus(device: AudioDevice.speaker);
Flutter Sound Version :
FULL or LITE flavor ? FULL
Severity
Platforms you faced the error
I only test by iOS real device
flutter pub deps :
Screenshots
Describe the bug
I connect a bluetooth headset named
TOFO
, but I still wanna record useiPhone
. I enter iOS Audio Manager to change audio device fromTOFO
toiPhone
in the picture above, then I callrecorderModule.startRecorder()
to record, it still record byTOFO
, is these a bug ?To Reproduce
bluetooth headset
bluetooth headset
toiPhone
bluetooth headset
Expected behavior
recorderModule.startRecorder()
to specify which audio device to record.