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
8
votes
1 answer

How to play two (or more) audio files simultaneously with just_audio and audio_service?

I tried reading through the project readme and issues on Github to see if it was a possibility to play two or more audio files simultaneously using the just_audio and audio_service plugins for Flutter. Has anyone achieved something similar using…
7
votes
3 answers

MissingPluginException(No implementation found for method init on channel com.ryanheise.just_audio.methods)

I am building a desktop application using flutter where I need to play audio files from local storage and for this I am using just_audio flutter package since it supports Windows. But I Couldn't find any examples of it for windows. I have coded…
7
votes
5 answers

just_audio not working on ios flutter Unhandled Exception: (-11800) The operation could not be completed

I am trying to run the just_audio sample project from its own repository https://github.com/ryanheise/just_audio/tree/master/just_audio/example It is working fine on android but when I clone the project using a mac and run it on the simulator it…
Sina Safari
  • 71
  • 1
  • 4
7
votes
1 answer

Flutter just_audio package how play audio from bytes

I'm using just_audio plugin and it has on description a feature: Read from byte stream. Basically when I put a file (from url) to play, I'm saving the bytes from file so after this step I want to play it locally. I have a question about how play…
Lauro Victor
  • 71
  • 1
  • 4
7
votes
1 answer

Issue in just_audio pugin in flutter

I'm making a project in which when user click on button a timer will start and after user set time a sound will play for that I'm using just_audio: ^0.6.15+1 in my flutter project but it cause many issue below is error stuff. D/Linux (21303):…
Ankush Mishra
  • 191
  • 2
  • 6
6
votes
1 answer

Which audio formats (extensions) work on ios and Android with the just_audio Flutter package?

Which audio formats (extensions) work on ios and Android with the just_audio Flutter package? Wondering which extensions I should allow users to upload with file_picker such that they play with the just_audio package (I couldn't find a list…
5
votes
0 answers

Flutter WebRTC Playing Audio

I wish to play audio from remote stream of webrtc connection, in Flutter. The examples of flutter webrtc use RTCVideoRenderer, but there is no video in my case. The remote stream only consists of audio. In short: pc.onTrack = (event) { // how can…
user5155835
  • 4,392
  • 4
  • 53
  • 97
4
votes
2 answers

MACOSX_DEPLOYMENT_TARGET keeps reverting to old values

I'm trying to build a Flutter app that targets macOS. After adding some dependencies, like just_audio, I am given warnings regarding MACOSX_DEPLOYMENT_TARGET in various locations being set to various values which need to be changed to some other…
Christopher Perry
  • 149
  • 1
  • 2
  • 8
4
votes
1 answer

How to catch an audio file url issue?

I am using audio_service with just_audio and have constructed a minimal example repo using the tutorial code I found in the repo. If the URL I use to initialize the AudioPlayerHandler is incorrect for any reason (hardcoded in the example code just…
Survy
  • 118
  • 7
4
votes
3 answers

Flutter just_audio loop mode is not looping

I am using flutter audio_service (https://pub.dev/packages/audio_service) and just_audio (https://pub.dev/packages/just_audio) to play audio files in foreground and background. I subclassed BackgroundAudioTask, added an instance of AudioPlayer, and…
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210
3
votes
1 answer

Flutter: With [just audio], is it possible to create a playlist that doesn't automatically jump to the next audio when the current finishes?

I'm using Flutter just audio and I'm creating a ContatenatingAudioSource like this: // Define the playlist final playlist = ConcatenatingAudioSource( // Start loading next item just before reaching it useLazyPreparation: true, // Customise the…
Andre Pena
  • 56,650
  • 48
  • 196
  • 243
3
votes
1 answer

Flutter - How to create two audio handler using just audio and audio service?

I am working on a meditation app where a background music starts to play when the user opens the app. App Displays list of playlist. When user click on the playlist it should play the playlist audio and pause the background music. If the music…
Ranjit Shrestha
  • 622
  • 6
  • 24
3
votes
2 answers

Playing audio from assets flutter

Hi I am using just_audio to play a mp3, from what I know to play the audio from url, we can use something like this: UriAudioSource _createAudioSource(MediaItem mediaItem) { return AudioSource.uri( Uri.parse(mediaItem.extras!['url']), …
wahyu
  • 1,679
  • 5
  • 35
  • 73
3
votes
0 answers

after install just_audio package in flutter received error "Execution failed for task ':audio_session:compileDebugJavaWithJavac'."

I received this error after installing the just_audio package in Flutter. I searched hard to solve my problem but did not find the answer. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task…
3
votes
1 answer

Use of Uri.parse or Uri.file

** Hi i want to use my asset image on screen while playing any song but im able to use oniline image but not asset image how to use asset image?** Uri.parse("live url"), tag: MediaItem( id: '${_nextMediaId++}', album:…
1
2 3
19 20