Fix analyzer

onboarding
Christian Pauly 6 years ago
parent bd391ef9c7
commit d6e1594a6f

@ -63,11 +63,8 @@ class _AudioPlayerState extends State<AudioPlayer> {
}
_playAction() async {
print("Current mxc: ${AudioPlayer.currentMxc}");
if (AudioPlayer.currentMxc != widget.content.mxc) {
if (AudioPlayer.currentMxc != null) {
print("Current mxc is wrong!");
print("Current audioState: ${flutterSound.audioState}");
if (flutterSound.audioState != t_AUDIO_STATE.IS_STOPPED) {
await flutterSound.stopPlayer();
setState(() => null);
@ -85,7 +82,6 @@ class _AudioPlayerState extends State<AudioPlayer> {
case t_AUDIO_STATE.IS_RECORDING:
break;
case t_AUDIO_STATE.IS_STOPPED:
print("start Player From Buffer");
await flutterSound.startPlayerFromBuffer(
audioFile,
codec: t_CODEC.CODEC_AAC,

Loading…
Cancel
Save