Open marcoberetta96 opened 3 years ago
The bug persists with version 8.0.0+6
The issue is here:
E/flutter (19531): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: type 'bool' is not a subtype of type 'int' in type cast
E/flutter (19531): #0 MethodChannelFlutterSoundPlayer.invokeMethod (package:flutter_sound_platform_interface/method_channel_flutter_sound_player.dart:184:58)
E/flutter (19531): <asynchronous suspension>
E/flutter (19531): #1 FlutterSoundPlayer._setAudioFocus (package:flutter_sound/public/flutter_sound_player.dart:732:17)
E/flutter (19531): <asynchronous suspension>
E/flutter (19531): #2 FlutterSoundPlayer.setAudioFocus.<anonymous closure> (package:flutter_sound/public/flutter_sound_player.dart:709:7)
E/flutter (19531): <asynchronous suspension>
E/flutter (19531): #3 BasicLock.synchronized (package:synchronized/src/basic_lock.dart:33:16)
E/flutter (19531): <asynchronous suspension>
E/flutter (19531): #4 FlutterSoundPlayer.setAudioFocus (package:flutter_sound/public/flutter_sound_player.dart:708:5)
@marcoberetta96 , Please could you check if your issue is fixed in Flutter Sound 8.0.2 ?
@Larpoux the unhandled exception has now disappeared, thank you.
Unfortunately now I'm not able anymore to set an AudioDevice
through either openAudioSession()
or setAudioFocus()
.
The audio is always reproduced using AudioDevice.speaker
.
Please let me know if I should open another issue.
I think that a code snippet is not useful because I'm not able to change from AudioDevice.speaker
in any case.
Please let me know and thank you!
I have just made some tests with the new flutter_sound 8.1.1 and unfortunately I'm still not able to to set an AudioDevice
through either openAudioSession()
or setAudioFocus()
.
Thank you.
Hi @Larpoux have you any update on this?
Hi @Larpoux I have just tried with flutter_sound 8.1.4 Have you any update on this?
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.
Flutter Sound Version : 7.7.0+1
Severity: result is not what expected
Platforms you faced the error: Android, Emulator
Describe the bug Can't reproduce audio from headset. [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: type 'bool' is not a subtype of type 'int' in type cast** Same error occurs when calling
await _playerModule.setAudioFocus();
To Reproduce
Logs