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.

[BUG] Muting OFF on Android

See original GitHub issue

Flutter Sound Version :

  • Released version

  • Version number: ^7.4.14+1

  • FULL flavor

  • Result of the command “flutter pub deps | grep flutter_sound”

|-- flutter_sound 7.4.14+1
|   |-- flutter_sound_platform_interface 7.4.14+1
|   |-- flutter_sound_web 7.4.14+1
|   |   |-- flutter_sound_platform_interface...

Severity

  • Result is not what expected

Platforms you faced the error

  • Some Android real devices

Logs

When recording:

I/AudioManager(29542): In stopBluetoothSco(), calling application: com.landa.app
I/AudioManager(29542): In setBluetoothScoOn(), on: false, calling application: com.landa.app
I/AudioManager(29542): In setSpeakerphoneOn(), on: true, calling application: com.landa.app
I/AudioManager(29542): In setSpeakerphoneOn(), on: true, calling application: com.landa.app
I/AudioManager(29542): In setBluetoothScoOn(), on: false, calling application: com.landa.app
I/AudioManager(29542): In stopBluetoothSco(), calling application: com.landa.app

When playing the sound:

I/flutter (29542): FS:---> openAudioSession 
I/AudioManager(29542): In stopBluetoothSco(), calling application: com.landa.app
I/AudioManager(29542): In setBluetoothScoOn(), on: false, calling application: com.landa.app
I/AudioManager(29542): In setSpeakerphoneOn(), on: true, calling application: com.landa.app
I/AudioManager(29542): In setSpeakerphoneOn(), on: true, calling application: com.landa.app
I/AudioManager(29542): In setBluetoothScoOn(), on: false, calling application: com.landa.app
I/AudioManager(29542): In stopBluetoothSco(), calling application: com.landa.app
I/flutter (29542): FS:---> channelMethodCallHandler : openAudioSessionCompleted
I/flutter (29542): FS:<--- channelMethodCallHandler : openAudioSessionCompleted
I/flutter (29542): FS:<--- openAudioSession 
I/flutter (29542): FS:---> setSubscriptionDuration 
I/flutter (29542): FS:<---- setSubscriptionDuration 
I/flutter (29542): FS:---> startPlayer 
I/flutter (29542): FS:---> stop 
I/flutter (29542): FS:<--- stop 
I/flutter (29542): FS:---> _convert 
I/flutter (29542): FS:---> needToConvert 
I/flutter (29542): FS:<--- needToConvert 
I/flutter (29542): FS:<--- _convert 
I/flutter (29542): FS:<--- startPlayer 
D/FlautoPlayer(29542): mediaPlayer prepared and started
I/flutter (29542): FS:---> channelMethodCallHandler : startPlayerCompleted
I/flutter (29542): FS:<--- channelMethodCallHandler : startPlayerCompleted
I/flutter (29542): audioPlayerListener 0:00:00.000000 0:00:02.560000
I/flutter (29542): audioPlayerListener 0:00:00.345000 0:00:02.560000
I/flutter (29542): audioPlayerListener 0:00:00.846000 0:00:02.560000
I/flutter (29542): audioPlayerListener 0:00:01.348000 0:00:02.560000
I/flutter (29542): audioPlayerListener 0:00:01.849000 0:00:02.560000
I/flutter (29542): audioPlayerListener 0:00:02.349000 0:00:02.560000
D/FlautoPlayer(29542): Playback completed.
V/MediaPlayer(29542): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer(29542): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaPlayer(29542): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer(29542): cleanDrmObj: mDrmObj=null mDrmSessionId=null
I/flutter (29542): FS:---> channelMethodCallHandler : audioPlayerFinishedPlaying
I/flutter (29542): FS:---> audioPlayerFinished
I/flutter (29542): FS:---> stopPlayer 
I/flutter (29542): FS:---> stop 
I/flutter (29542): FS:---> closeAudioSession 
I/flutter (29542): FS:---> stop 
I/flutter (29542): FS:<--- audioPlayerFinished
I/flutter (29542): FS:<--- channelMethodCallHandler : audioPlayerFinishedPlaying
I/flutter (29542): FS:<--- stop 
I/flutter (29542): FS:<--- stopPlayer 
I/flutter (29542): FS:<--- stop 
I/flutter (29542): FS:<--- closeAudioSession 

Describe the bug Some Android devices record as expected but when playing this record file, no sound is heard. If I try to play this record file on other devices, there is no sound either.

Additional context**

This problem is faced in a BQ X2. Moto G9 works fine. No problem found in iOS.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:54

github_iconTop GitHub Comments

1reaction
efraespadacommented, Jan 6, 2021

Of course, done! And trying to send a Paypal tip for a super coffee (not sure if it worked, I’ll review again in hours 😄).

Thank you very much!

1reaction
efraespadacommented, Jan 6, 2021

Well, I realized where is the problem (in my application). Your comment about the mute state was the trick.

My app can do VoIP calls. If I mute the microphone when calling, the record I do later is blank.

You are completely right with that:

The minimum I will do, will be to add this instruction to Mute OFF.

My fault 😓

Read more comments on GitHub >

github_iconTop Results From Across the Web

My Phone automatically goes to Silent Mode or mute itself
My Phone automatically goes to Silent Mode or mute itself ... Android Apps Junction ... 23 Android 13 Settings You NEED To Turn...
Read more >
Phone mute bug/annoyance - OnePlus Community
Dear Oneplus, This has been reported multiple times before, but can you please disable the function to mute phone calls when pressing the...
Read more >
How to Fix Android Phone Automatically Goes into Silent Mode
As clichéd as it may sound, restart your device. Rebooting is the magical cure that can work anytime. If your device still goes...
Read more >
Google Assistant bug mutes over Bluetooth, Android Auto
I've not been able to replicate this issue in my testing on any devices. Quite a few users speculate that an update to...
Read more >
Do ongoing calls suddenly go 'mute' at times? You may need ...
If you have been facing the problem of too many calls suddenly becoming mute for a period of time, then you need to...
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