Questions tagged [flutter-audioplayers]
59 questions
17
votes
3 answers
Flutter audioplayers plugin error on xcode (Module 'audioplayers' not found)
When I test it on iOS it works fine but when I try to archive on XCode it give me the following error:
Module 'audioplayers' not found
I use audioplayers 0.13.5
As you can see from my pubspec file I have the latest flutter and everything is ok…

arman codex
- 527
- 1
- 8
- 18
6
votes
1 answer
Flutter Bloc with audioplayers
Almost a day of figuring way how to do it and I need your help.
I've created an app that would have a state with an instance of audioplayers and using flutter_bloc.
Problems:
The state player plays but the Widget MusicPlayer doesn't rebuild the…

ruelluna
- 787
- 1
- 11
- 30
4
votes
0 answers
Flutter audioplayers returns wrong playing time?
I'm using audioplayers: 1.1.0 plugin to play audio from url. It's playing well. But the player.onPositionChanged after particular seconds it restarts and timer starts from 0.
So that my slider again starts from 0.
…

Anand
- 4,355
- 2
- 35
- 45
4
votes
1 answer
How do I solve a configuration problem with audioplayers when using the command flutter build apk?
I have just created an app with flutter and I want to get the apks by splitting per abi. When given the command, there is a problem with configuring the plugin audioplayers.
I thought it could be a problem with using androidX?
Here is the error I…

FlutterMaster
- 53
- 4
3
votes
0 answers
Disable logging from audioplayers library in Flutter
Hey I keep getting this annoying output in my console from this library:
https://pub.dev/packages/audioplayers
I used the following function and thought it would stop the logs:
AudioPlayer.global.changeLogLevel(LogLevel.none);
But I still keep…

Lucas Goldner
- 617
- 9
- 29
2
votes
0 answers
audioplayer kotlin version in flutter
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':audioplayers' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21
```audioplayers:…

Nanda Y
- 21
- 4
2
votes
2 answers
Flutter audioplayers: How to handle PlatformException(AndroidAudioError, Methods marked with @UiThread must be executed on the main thread)
I am using audioplayers (4.0.1) to play some short audio. The function runs ok as I can hear the audio gets played, but I see those warning messages in my console.
I am super new to Flutter, so my question is, should I care about this message, if…

Kaidi G
- 43
- 4
2
votes
1 answer
How to show artMusic on Media control (Notification) from assets file in flutter
I am using Just Audio and Just Audio Background for playing music and media control on Notification.
I am able to show album, title of storage songs on Notification control but unable to show artmusic of music on Notification.
I am using on Audio…

Rahul Kushwaha
- 5,473
- 3
- 26
- 30
2
votes
1 answer
Flutter audioplayers audio not playing
I use the audioplayers class and everytime I call the player.play('timer.mp3') it gives me this errer:
Reusing soundId 1 for file:///data/user/0/com.example.secret_app/cache/timer.mp3 is loading=false…

Codeopold
- 45
- 8
2
votes
0 answers
Flutter | audioplayers onDurationChanged Method isn't working on IOS
I'm trying to make some kind of an mp3 player app and i'm using audioplayers package. And it's been working fine on Android, but on IOS the onDurationChanged doesn't seem to be getting called.
And since i'm also showing a slider, it gives an Error…

StarBattle08
- 55
- 1
- 4
2
votes
3 answers
no audio sound after importing audioplayers package in flutter
I have imported a package from https://pub.dartlang.org/ called as audioplayers.
I have added the dependecies in my .yaml file dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2
audioplayers: ^0.15.1
assets:
- assets/
note1.wav…

pratteek shaurya
- 850
- 2
- 12
- 34
2
votes
3 answers
Flutter Audioplayers delay
I'm coding a small game with the Flutter Framework.
I'm using audioplayers for the Sounds.
It works fine like this, when calling it for example 2 times a second.
But whenn I call it more than 5 times and again in the next second at some point the…

midi
- 3,128
- 5
- 30
- 47
1
vote
3 answers
From where the "PlayerState" class comes in audioPlayers flutter package?
I needed some help regarding using audioplayer package in flutter, i found a piece of code thats understandable except the PlayerState.PLAYING part, is this PlayerState a part of audioPlayers package or what?
Code:
//listen to states: playing…

Elle Bishop
- 307
- 11
1
vote
1 answer
Flutter audioplayers: How can I play a list of audios one by one (when the previous ends)
How can I play a list of (short) audio one by one using audioplayers?
I now have the following code:
AudioPlayer? _player;
void _play(number) async {
_player?.dispose();
final player = _player = AudioPlayer();
print("trying to play…

Kaidi G
- 43
- 4
1
vote
0 answers
audioPlayers and file-picker issues with flutter
hello. I'm trying this audioPlayers package but I didn't succeed to work it. I was following a youtube tutorial about it but half of the methods are changed. Flutter says there's no error in my code but I think I have logical errors. Since I don't…

byraychen
- 43
- 7