Questions tagged [flutter-audioplayers]

59 questions
0
votes
0 answers

Mp3 is not playing in android studio in flutter

Hi i'm new to flutter and trying to play a song by pressing a button in my app. MY Code: // ignore_for_file: prefer_const_constructors import 'package:audioplayers/audioplayers.dart'; import 'package:flutter/material.dart'; void main() { runApp( …
0
votes
1 answer

Stop other audio when a new audio is Playing in flutter using audioplayers.dart package

Code isn't working, the audioplayer() does not stop even after playing other sound and it keeps playing multiple sound simultaneously. I want to play one audio at a time and other audio to be paused instead of playing simultaneously. There are…
0
votes
0 answers

How to Record Audio output in Flutter without using microphone

I have an app that plays short audio clips (like a beat maker) and would like to be able to record these. I currently use audio_players to play multiple sounds concurrently. I'm looking to add in the ability to record the beats that are created by…
0
votes
1 answer

How can I implement fadeOut on my audios in the current Flutter audioplayers plugin version: ^3.0.1?

I have the dart code however in the current version of the Flutter Audioplayers 3.0.1 plugin it reports error: Error: The method 'fadeOut' isn't defined for the type 'AudioPlayer'. Try correcting the name to the name of an existing method, or…
0
votes
1 answer

flutter audioplayer not working after hot restart

I use audioplayers https://pub.dev/packages/audioplayers 3.0.1 under Windows and native Android. Under Android everything works perfectly fine but I have issues under windows. What works: I can play my audio (mp3) file as often as I want. (Windows…
Andreas
  • 27
  • 4
0
votes
1 answer

Flutter audioplayers: ^2.0.0 error Unhandled Exception: Unable to load asset: assets//data/user/0/com.xxxx.xxxx/cache/flip.mp3

I'm trying to use audioplayers: ^2.0.0,but i got this error, how to solve it?please! pubspec.yaml flutter: uses-material-design: true assets: - assets/audio/ Code Future setAudio() async { AudioPlayer audioPlayer = AudioPlayer(); …
Janhwa
  • 1
  • 1
0
votes
0 answers

solving the problem of audioplayers package in flutter

0 I tried just_audio package but it didn't work. I tried audioplayers package again but in another application. Then the application launched but I found another issue that the file doesn't work. Here is the codes and errors: I tried just_audio…
0
votes
1 answer

Flutter audioplayers next and previous

I creating a music player in flutter using audioplayers as package but couldn't find way to play next and previous song in the list.
0
votes
0 answers

Audioplayer error Unhandled Exception: MissingPluginException(No implementation found for method play on channel xyz.luan/audioplayers)

I'm using dependency : audioplayers: ^0.20.1 And when I want to play a sound, I get his error : [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method play on channel…
J. Steffe
  • 11
  • 1
0
votes
0 answers

Module 'audioplayers' not found

I'm trying to run a flutter application on an ios device and this error shows up Module 'audioplayers' not found i have tried things like clean cache, adding armv7 to the build setting on xcode, also confirm multiple times that i was running the…
Nma Ndidi
  • 65
  • 1
  • 7
0
votes
1 answer

Flutter: Unable to access ressource for audioplayers package

I try to play a local mp3 audio file on onPressed() The function looks like this: playLocal() async { await audioPlayer.play('assets/audio/test.mp3', isLocal: true); } The file is located here: pubspec.yaml: flutter: uses-material-design:…
Dennis
  • 67
  • 1
  • 6
0
votes
1 answer

Error Playing Url with Flutter Audioplayers

I am just trying to test Flutter Audioplayers library, but I am having an issue actually playing the audio. Here's the code: specifying vars and init state class _HomeState extends State { bool playing = false; IconData playBtn =…
arbiter
  • 421
  • 7
  • 29
0
votes
1 answer

Flutter no sound with audioplayers

I'm trying to use audioplayers package from https://pub.dartlang.org/ , so after I installed the package into my project to play a .wav file I get this error . E/flutter ( 7738): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception:…
azooz
  • 27
  • 8
-2
votes
1 answer

I am trying to play audio in my code, but it creates error and not working properly

Error: unable to find directory entry in pubspec.yaml: D:\Flutter\New folder\practice\audio E/flutter (10832): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unable to load asset: "assets/assets/audio/sound_alarm.mp3".…
1 2 3
4