yoer
yoer
Any news on this?
为什么要设置这么高的平台,flutter这么多库里面,你们是唯一打包会碰到问题的
> Ok, so this code worked for me: > > ```dart > final AudioContext audioContext = AudioContext( > iOS: AudioContextIOS( > defaultToSpeaker: true, > category: AVAudioSessionCategory.ambient, > options: [ >...
crash info: ``` E/flutter (13571): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: FormatException: Message corrupted E/flutter (13571): #0 StandardMessageCodec.readValueOfType (package:flutter/src/services/message_codecs.dart:532:16) E/flutter (13571): #1 _WakelockPlusApiCodec.readValueOfType (package:wakelock_plus_platform_interface/messages.g.dart:96:22) E/flutter (13571): #2 StandardMessageCodec.readValue (package:flutter/src/services/message_codecs.dart:477:12) E/flutter (13571): #3 StandardMessageCodec.readValueOfType...
Wow, you are so efficient. problem solved, thanks a lot.
I have tried setting the audioMode to AndroidAudioMode.inCall but no effect
> Did you try awaiting the futures before starting playback? > > Also I recommed using AudioContextConfig.build instead of using the direct implementations. I didn't get what you mean, can...
```dart AudioContext get defaultAudioContext => AudioContext( iOS: AudioContextIOS( /// not silenced category: AVAudioSessionCategory.playback, options: const { AVAudioSessionOptions.mixWithOthers, }, ), android: const AudioContextAndroid( isSpeakerphoneOn: true, stayAwake: true, contentType: AndroidContentType.unknown, usageType: AndroidUsageType.notificationRingtone,...
After the above modification, it will take effect on the next player playback (the next player will be played in the headset), and the current concert will be paused (I...