Commit a48890c06efb947379cd6e46177252b0029b611e
1 parent
93efa69f
feat:iphone录音后音频由听筒播放问题通过升级audioplayers版本解决,删除无效代码
Showing
1 changed file
with
1 additions
and
2 deletions
lib/pages/reading/bloc/reading_bloc.dart
| @@ -276,8 +276,7 @@ class ReadingPageBloc | @@ -276,8 +276,7 @@ class ReadingPageBloc | ||
| 276 | 276 | ||
| 277 | Future<void> _playAudio(String? audioUrl) async { | 277 | Future<void> _playAudio(String? audioUrl) async { |
| 278 | if (audioUrl!.isNotEmpty) { | 278 | if (audioUrl!.isNotEmpty) { |
| 279 | - await audioPlayer.play(UrlSource(audioUrl), | ||
| 280 | - balance: 0.0, ctx: AudioContext()); | 279 | + await audioPlayer.play(UrlSource(audioUrl)); |
| 281 | } | 280 | } |
| 282 | } | 281 | } |
| 283 | 282 |