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
2
votes
0 answers

Just Audio Background Flutter: How to enable or disable the volume bar on the lock screen?

I have a flutter app which needs to play audio in the background. I was using just_audio and found Just Audio Background package - https://pub.dev/packages/just_audio_background and implemented it for my app. For iOS: It works perfectly fine for my…
Sumita
  • 41
  • 1
  • 5
2
votes
0 answers

A lightweight and performant way to save audio progress in flutter with just audio

I want to save the current track and time location in a Just Audio playlist in a flutter app. My current thought is to save the location using something like _audioPlayer.positionStream.listen((event) { // update the progress bar in the UI //…
rahokey531
  • 63
  • 4
2
votes
0 answers

onSeek Method which provided from just_audio plugin does not work correctly with acc audio file

onSeek Method which provided from just_audio plugin does not work correctly with acc audio file i have the following file audio .mp3 which is normally seeking myAudioPlayer.setUrl(url.mp3); myAudioPlayer.play(); MyCustumSlider( onSeek(value){ …
2
votes
1 answer

Flutter ConcatenatingAudioSource from Firebase

I tried hard to fix this playlist but whenever I want to get data from firebase it shows me this error. and it doesn't show the audio in the playlist ** Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not…
i5h_7
  • 33
  • 5
2
votes
3 answers

just_audio - Audio player after completer, start from the beginning

I created player audio and I used the just_audio plugin, I have a problem when the audio player completes and does not return to the beginning. I tried to use player.playerStateStream.listen() but when I click on the play icon it does not play the…
developer1996
  • 827
  • 2
  • 14
  • 26
2
votes
1 answer

Enable or Disable Lockscreen art in Audio_Service Flutter

This question is specifically related to the Audio Service package in flutter. Till v0.17.0 there was a lock screen art but it's not there in v0.18.0. So, I just wanted to know if there's any specific method by which I can enable as well as disable…
Ankit Sangwan
  • 1,138
  • 1
  • 7
  • 20
2
votes
0 answers

How to stream only the audio of a song, from the songs Youtube URL in Flutter?

How to stream only the audio of a song, from the song's Youtube URL in flutter? I tried downloading the audio file of the song from the Youtube URL and playing it. Instead of downloading it, I need to stream it online. Is there any way to do this in…
2
votes
2 answers

How to properly play audio file using just_audio - flutter

Am working on a music app were am suppose to stream audio and also play my locally stored files. Am using flutter and am not good on it, Actually am learning. What i wanted is to be helped on how i can play a file properly, The intention is to play…
James in code
  • 73
  • 1
  • 6
2
votes
2 answers

Listening to Song End in just_audio

I wanna ask is there any stream to listen when the song get ended to do some stuff at that point in just_audio flutter package or is there any method to do that ?
user15887518
2
votes
1 answer

Check if audio has already been loaded

Question: How do I know whether or not the action of fetching the audio from a remote source (e.g. loading a player with player.setUrl(url1, preload: true)), has already been done for this player? AudioPlayer player = AudioPlayer(); …
lenz
  • 2,193
  • 17
  • 31
2
votes
0 answers

Turn off Verbose in [just-audio] Flutter Plugin?

I'm using Flutter's Just-Audio plugin to play audio from the web. https://pub.dev/packages/just_audio https://github.com/ryanheise/just_audio At the moment I get lots of printouts in the run console of Android Studio. It's making development really…
Meggy
  • 1,491
  • 3
  • 28
  • 63
2
votes
2 answers

Continu my music after a pause in just_audio plugin

I use the plugin just_audio How can I continu my music after to do a pause? please. void _play() { audioPlayer.setAsset("assets/applause.mp3"); audioPlayer.play(); } void _pause() async { await audioPlayer.pause(); } void _rePlay()…
Carle
  • 25
  • 6
2
votes
1 answer

How to merge two audio files with just_audio for playing both at the same time?

How to merge (not concat) two audio files with just_audio for playing both at the same time? I want to merge it to avoid a hardware limit of just_audio instances playing at the same time. To play with just one instance of just_audio.
JavaRunner
  • 2,455
  • 5
  • 38
  • 52
2
votes
3 answers

Flutter package "just_audio" throws exception

The exception is [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method getTemporaryDirectory on channel plugins.flutter.io/path_provider). I implement this package to my sample…
TaiTrien
  • 39
  • 1
  • 6
2
votes
1 answer

Native file path

I have started a development of a music player. I made some additional kotlin logic to retrieve all audio files meta data on device from the Android as a list of meta data. I'm trying to understand how a native path should look like for just_audio…
ZlatiP
  • 185
  • 6
1 2
3
19 20