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]: openRecorderCompleted is never called on Web

See original GitHub issue

Flutter Sound Version : 7.7.0+1

  • FULL flavor

  • Result of the command flutter pub deps | grep flutter_sound :

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

Severity

Result is not what expected: I can’t use flutter_sound because I wait for openAudioSession to complete before flagging that the recorder is ready, but it is never ready.


Platforms you faced the error

Flutter Web


Describe the bug On flutter web, the future that FlutterSoundRecorder.openAudioSession() returns never completes (because openRecorderCompleted is never called, and that’s where the completion of the future is called).

To Reproduce Steps to reproduce the behavior: Have an instance of a FlutterSoundRecorder recorder = FlutterSoundRecorder(); Then call recorder.openAudioSession(), await the result, and the result never completes (web).


Logs:

FS:---> openAudioSession 
---> openAudioSession
Resetting flutter_sound Recorder Plugin
---> resetPlugin
<--- resetPlugin
initializeFlautoRecorder
<--- openAudioSession

No other line: NO call to openRecorderCompleted.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Larpouxcommented, Mar 5, 2021

OK. I am going to look to your issue this afternoon. Sorry for the inconvenience.

0reactions
OroshiXcommented, Jun 30, 2021

Any news on this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

A better τ - GitHub
[BUG]: Calling setAudioFocus() to change audio output does not work ... [BUG]: openRecorderCompleted is never called on Web #637 opened by ...
Read more >
Issues · Canardoux/flutter_sound · GitHub
[ENH] Flutter Sound on Web could use Dart code instead of Javascript ... [BUG]: openRecorderCompleted is never called on Web maybe bug Not...
Read more >
dooboolab - Bountysource
[BUG]: PlatformException thrown when trying playing local audio file. $ 0. Created 1 year ago in Canardoux/tau with ... Flutter Web Bootstrap: Programmatic...
Read more >
The Never Endless Bug - Portal Integrators
The bug is a coding error or sometimes is a misbehavior action in a computer program and the impact of this programming bugs...
Read more >
Crash when recording while using Bluetooth headphones (iOS)
Cannot build my App ? Minor issue ? Platforms you faced the error. **[ x ] iOS **. Android ? Flutter Web ?...
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