flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

[BUG] Physical volume buttons

Open codesniper9315 opened this issue 5 years ago • 10 comments

Dear guys! I am using this package(flutter_sound) for audio chat system in my app. Currently I have a problem with this package.

Before use flutter_sound, controlling the audio volume is working well. But just once initialize the audioRecorder after that I can not control the audio volume anymore. When I click the volume button what is side of my phone, I can see the in-call volume control UI. Whether I am using the microphone or not to record my audio...

Even if the app is running in background, same issue.

If I close the app permanently and re-run, I can not see this issue until initialize the audioRecorder.

If they don't record audio, I need to show the media volume UI when users control their volume.

Who can help me? Thanks

codesniper9315 avatar Sep 07 '20 16:09 codesniper9315

Hum! iOS or Android ?

Larpoux avatar Sep 07 '20 16:09 Larpoux

on Both

codesniper9315 avatar Sep 07 '20 16:09 codesniper9315

I have myself such a problem on my Android device, but I never figured the reason. I did not do many investigations, and I even was not sure that it was tied with Flutter Sound.

Maybe someone else can help ?

Larpoux avatar Sep 07 '20 16:09 Larpoux

In my thought, in this package my microphone keep be using after initialize once even if the app is running in background. So I am seeking the reason more exactly to fix it. But it is not going well yet.

codesniper9315 avatar Sep 07 '20 16:09 codesniper9315

Who can help me???

codesniper9315 avatar Sep 07 '20 16:09 codesniper9315

There is probably a problem in Flutter Sound, but I am surprised that your problem occurs on iOS AND Android. The code is very different in this area for the two devices.

Larpoux avatar Sep 07 '20 16:09 Larpoux

On your end, it is working well on one of them platform at least on your end?

codesniper9315 avatar Sep 07 '20 16:09 codesniper9315

Hi @iscojin ,

Do you have still problems with volume buttons ?

Larpoux avatar Dec 28 '20 14:12 Larpoux

Registered in the Flutter Sound Project

Larpoux avatar Dec 28 '20 15:12 Larpoux

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.

github-actions[bot] avatar Dec 22 '23 01:12 github-actions[bot]