Questions tagged [just-audio]

just_audio is a Flutter plugin for playing audio from files, assets, URLs and byte streams.

Use this tag ask questions about just_audio.

  • State your question clearly.
  • Describe what you have already tried.
  • If you include code snippets, explain the relevant sections as they pertain to your question.

If you haven't done so already, check the relevant API documentation for the problematic methods you are trying to use, or if your question is about feature availability, make sure you first check the supported feature list in the README.

If you are confident that you have found a bug in just_audio itself, or you would like to suggest a new feature that is currently not supported, you can submit a GitHub issue.

289 questions
0
votes
2 answers

Playing two sound tracks at the time [just audio]

I'm trying to play two sound tracks at the time, the first one work as a BGM and the other works as a SFX What happened now is the BGM is playing and when a SFX sound start to play the BGM is stopped and then starts from the beginning. I want both…
Ali Habbash
  • 777
  • 2
  • 6
  • 29
0
votes
1 answer

Converting A List of MediaItem to ConcatenatingAudioSource Error: Instance of 'ConcatenatingAudioSource'

I am trying to parse/convert a list of MediaItem to a ConcatenatingAudioSource, but my unit test keeps giving me an error that the converted ConcatenatingAudioSource does not match up with the target source. My test is List audioSource =…
shiyueyu
  • 25
  • 4
0
votes
1 answer

Flutter - Audio Player

hello i am new to flutter i am trying to play audio files from url or network but which to use because i searched google it showed many but which one to use. if possible can show an example on how to create like below image i want to create an audio…
Samkit Shah
  • 33
  • 1
  • 10
0
votes
1 answer

How to add List of SongInfo from Flutter Audio Query to audio service MediaItem in flutter?

I tried to look for solutions on internet but I didn't get one. I also tried some ways but still it didn't work. I have used just audio and flutter audio query plugins for audio player, and I tried to use audio service plugin for making it running…
0
votes
1 answer

Shouldn't setClip function return a new file using just_audio package?

In my app, I allow users to edit their audio recording and I use just_audio to do this. When the audio is clipped from 30 seconds to 20 seconds I realized that only the duration of the audio changed but the file length did not change so the audio…
Naj
  • 723
  • 7
  • 17
0
votes
0 answers

How to pass the MediaLibrary to the AudioService and start playing from specific song in flutter

I have all the UI and logic to read songs from the device and I made my own loagic for playlists because android 10 has a bug. Anyways, so I'm looking on the audio_service package. The example has it all, but the Media library is hardcoded. Despite…
ZlatiP
  • 185
  • 6
0
votes
1 answer

How to fetch song details every time from an API before playing in just_audio and audio_service

I want to use audio_service and just_audio to play audio in the background. But the problem is I have to set queue at the start with all metadata to make sure they run automatically even when the app is in background. But I don't have song URLs to…
Ankit Sangwan
  • 1,138
  • 1
  • 7
  • 20
0
votes
1 answer

How to get duration of specific audio in AudioSourse just_audio Flutter?

I am building a project can play audios with just_audio. I have a list of audios put in AudioSource and I need to create a control dash (a play button and a progress bar) for each of audio in the list, instead of using a common for the playlist as…
NhiNgo
  • 1
  • 1
0
votes
1 answer

Flutter onResume is detected too late for music pausing

I have the following code, Im using just_audio as my audio player. My problem is I want to pause, unpause the audio when the user leaves the app. I successfully accomplished this with the following: @override void initState() { …
cs guy
  • 926
  • 2
  • 13
  • 33
0
votes
1 answer

How to fetch audio from my api with protected urls using just_audio (flutter)

I'm trying to play audios using just_audio on my flutter app. My audio url are coming from an API that i've build using django rest framework and the urls to those audios are protected (I'm using token authorization)
-1
votes
1 answer

Justaudio Flutter cant run

onTap: () { final player = AudioPlayer(); player.play( player.setAudioSource('assets/sound.wav'), ); There was an error in my just auido flutter so I can't run the audio. help me please. I create my code in vscode and i had add asset in public yaml…
-1
votes
1 answer

How to play "beep" sounds even when the Flutter app is in the background?

Summary How can I ensure audio plays in my app even when it's minimized or in the background? Detailed Explanation I'm working on integrating a timer feature into my app that's designed to emit a beep sound as the timer approaches its end. While…
Alex Lomia
  • 6,705
  • 12
  • 53
  • 87
-1
votes
1 answer

Just audio flutter package streaming quality problem

I am developing mobile app in flutter where I want to change the streaming song quality like 96 Kbps,160 Kbps,320 Kbps I don't know how to change the user-defined streaming songs quality I am using just_audio: ^0.9.24 It would be great if someone…
-1
votes
1 answer

Playing same audio on two players simultaneously using just_audio and just_audio_background

I am working on an app that plays audiobooks, and when you click a book in your list a full window player will start playing the book, however when you close/minimize it, I want a miniplayer to show right about the navbar in the bottom. This player…
-1
votes
1 answer

TYPE_SOURCE: None of the available extractors (just_audio flutter)

Caused by: com.google.android.exoplayer2.source.UnrecognizedInputFormatException: None of the available extractors (PsExtractor, FlvExtractor, FlacExtractor, WavExtractor, FragmentedMp4Extractor, Mp4Extractor, AmrExtractor, OggExtractor,…
1 2 3
19
20