question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[HELP] Audio Volume buttons on Android

See original GitHub issue

When using android phones, we use the volume key (at the side of the phone) to change volumes. Usually, when we press that key, it showed that we are changing the volume of “ring bell”. When watching youtube, it showed that we are changing the volume of “media”. When watching taking a phone call, it showed that we are changing the volume of “phone call”.

However, when I use flutter_sound 5.1.1 to record (startRecorder) or play sounds startPlayer, it always showed that I’m changing the volume of “phone call”.

Device: Physical device, Samsung Galaxy S8

This issue happened when I was using flutter_sound 3.x.x and it was fixed in 4.x.x. I’ve tried to change audioSource: AudioSource.microphone but it doesn’t works. Also, the output voice came out from the speaker, not from the ear part, but still far lower than expected. Anyone knows why this happened?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Larpouxcommented, Sep 30, 2020

I cannot reproduce this bug any more on V 6.1.1

@tonypottera24 , @Mateis , Could you kindly verify that this bug is now fixed ?

Note, I use the following parameters in openAudioSession() :

 await playerModule.openAudioSession(
          focus: AudioFocus.requestFocusAndKeepOthers,
          category: SessionCategory.playAndRecord,
          mode: SessionMode.modeDefault,
          device: AudioDevice.speaker);
0reactions
Mateiscommented, Sep 30, 2020

Solved everything. Much love.

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 Ways to Change the Volume on Android Without Buttons
One obvious alternative is to change the volume from the Android Settings app. Just open the Settings app and select the Sound and...
Read more >
How to fix volume button not working on Android - Carlcare
Perhaps the volume button is broken and needs to be changed. You can seek a virtual replacement by using soft keys to increase...
Read more >
Assistive Volume Button - Apps on Google Play
Simulate the phone's physical volume keys on the screen. Assistive Volume Button shows the volume buttons on the edge of the screen which ......
Read more >
7 Useful Android Volume Control Apps to Fine Tune Your ...
For example, by swiping down from the top of the display, you'll see the volume settings for the alarm, multimedia, notifications, ringer, ...
Read more >
How to use the volume keys to activate an accessibility feature ...
How to enable the Volume key shortcut · To access the Accessibility features on your Android device open the Settings app · In...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found