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
1
vote
1 answer

How to modify UI in notification flutter?

I'm making a music player application by following this tutorial using packages from audio_service: ^0.18.4 just_audio: ^0.9.20 the music player app runs smoothly, but I want to add a button in the notification view section, is there a way to do…
1
vote
0 answers

How play sound in silent mode with just audio

Is there any way to play the sound even in silent mode using this plugin? If yes, send me a reference or what properties are needed? I'm already using permissions of ACESS_NOTIFICATION_POLICY and redirecting and activating my app user to allow…
Lucas santos
  • 103
  • 9
1
vote
1 answer

how to record audio from a URL (podcast, radio, stream) into file without using mic. Flutter plugin Just Audio

I have a radio app where I play radio from URL using just audio in flutter (by using seturl() method and then play() method). I want to record audio using stream or some sort of other way than using microphone (which is already done and…
1
vote
0 answers

Seek method not working Flutter Just Audio

I am working on a basic audio streaming app. Everything is working fine Play/Pause , Skip the song... The only problem that i have is to go forward in a Song. My goal is to have a button to skip 10seconds of the music. Here is the class AudioManager…
Hamidou
  • 65
  • 6
1
vote
0 answers

just_audio canot play local wav file

i have been working with just_audio package and facing this issue, about to play C:\Users\lei\AppData\Local\Temp/XskTmEhFJkqMmDrT.wav, size:26428 player.setFilePath('C:\Users\lei\AppData\Local\Temp/XskTmEhFJkqMmDrT.wav'); this is the error message…
1
vote
2 answers

How to play and stop audio at specific time?

I have an audio player app using just_audio plugin. How to play and stop audio at a specific time? For example, I have an audio file that is 20 minutes long. I want when I press play button, the audio will run at the 5th minute and stop at the 8th…
Ary Anzh
  • 406
  • 3
  • 15
1
vote
0 answers

Play current song using just_audio and audio_service flutter

I have two display page.One is listview and another one is audio display.I want to make when I click item in listview and I will pass audio link to audio display page and play this song.But I also want to add previous and next button and when I…
Neural
  • 370
  • 1
  • 11
1
vote
2 answers

Changing AudioHandler.mediaItem without a Queue

I am working on my first Flutter app which implements basic stream functionality. Upon starting, the app loads a stream from source A. The app contains navigation menus to allow the user to play streams from additional sources B, C, D... etc. I've…
1
vote
1 answer

Flutter - Play sound files from platform specific folders (e.g. android/app/src/main/res/raw for Android)

In my Flutter app, I've some custom sound files placed in android/app/src/main/res/raw to be used as notification tones. Now I want to play these sounds when user selects using Just audio package. Not sure how to reference and play these files (or…
1
vote
2 answers

Flutter audio_service stream update notification with IcyMetadata

I want to to a streamApp for just one stream/url. In the audio_service example there is an MediaItem added in the AudioPlayerHandler. This works so fahr but when IcyMedata updated the notification … obviously … has title and stuff from the added…
Tom Peak
  • 11
  • 5
1
vote
3 answers

How to play local audio using just_audio?

I have list of file path like this one: content://media/external/audio/media/2732 I want to play the audio using the given file path. How can I add that path as a media item? MediaItem( id: "content://media/external/audio/media/2732", title:…
Yubaraj Shrestha
  • 864
  • 1
  • 10
  • 16
1
vote
1 answer

Song Added To Queue not Playing (Using just_audio and audio_service)

Am working on an audio player and I want to pass an individual item to the queue,I needed to do was to pass the params to the controller and from there I was able to pass it to the page_manager and then, I was able to add it to the queue, doing it…
Zionnite
  • 291
  • 4
  • 13
1
vote
1 answer

Catching bad url when using ConcatenatingAudioSource in just_audio

I got a playlist of AudioSources that contains some bad url one (return 400 error with some info). And I use ConcatenatingAudioSource to wrap those audios and pass to setAudioSource. When player play that bad url audio sources, it throw something…
Hai Thien
  • 46
  • 1
  • 4
1
vote
1 answer

How can I fade in and fade out audio in just_audio?

I have a ConcatenatingAudioSource for which I want to fade each item in and out. What is the best way to fade in and fade out in just_audio?
1
vote
1 answer

JustAudio Battery Usage and Audio Offload

I am concerned about the battery usage of ExoPlayer, and their suggestion to use audio offload when playing longer streams. Their documentation says that audio offload is in experimental phase. I recently saw that just_audio upgraded to ExoPlayer…
Flutter
  • 15
  • 3