Questions tagged [audio-service]

audio_service plugin for Flutter

Use for questions about the audio_service plugin for Flutter

118 questions
0
votes
1 answer

Flutter - Problem with Lock screen window icon with Audio Service in Android only

I use Audio Service to allow audio files to play in the background. Everything works fine except for the icon in the Lock screen (Android only, iOS work fine). In the documentation I couldn't find how to implement it. To implement personal icons…
csacchetti
  • 63
  • 5
0
votes
0 answers

How to change the shuffled order in just_audio without affecting the original order?

I'm building a queue system for a music player where I would like to be able to reorder songs. The player has two playback modes, linear (original order) and shuffled (shuffled order). In linear mode, the original order should be updated, without…
0
votes
1 answer

How to adjust volume with audio_service with Flutter

How to adjust the audio volume using the audio_service package? I don’t see any methods in the AudioHandler class that can do this. For example, how can I adjust the volume with simple buttons on the Flutter UI, and/or change the volume gradually…
Kdon
  • 892
  • 6
  • 19
0
votes
0 answers

"Error Implementing AudioServiceActivity in Flutter: Unresolved Package 'ryanheise'"

I'm trying to implement audio_services in my app to read podcast while device is locked, When I try to change this :
0
votes
0 answers

Overlay is reappearing when it is triggre an event

I have make an overlay that should be appear if my music ends. that overlay has elevated buttons and by pressing them it should remove the overlay and starts play another audio. but by pressing it audio is begin to but overlay is not being remove.by…
0
votes
0 answers

Notification permission when playing audio

We are programming an application with Audio-Service plugin, and when we start playing an audio, the Android terminal asks for permission to receive notifications. Something that we don't need and we are not going to use, so it is indifferent to…
0
votes
0 answers

Update state when revisiting the screen

I'm developing the flutter app which can play audio. Audio is fetching from firebase and playing perfectly but the problem is that when begin to play audio and exit from that screen, again, revisiting that screen, it won't update its state(seekbar,…
0
votes
0 answers

Android 14 - make notification non swipeable

Code: audioHandler = await AudioService.init( builder: () => AudioPlayerHandler(), config: const AudioServiceConfig( androidNotificationChannelId: 'com.ryanheise.myapp.channel.audio', androidNotificationChannelName: 'Audio…
niclas_4
  • 3,514
  • 1
  • 18
  • 49
0
votes
0 answers

Taping the lock screen player controller opens the wrong web app

I have a problem with a flutter web app. I'm using the just audio plugin and audio service plugin. When playing an audio file while beeing on the lock screen, taping the lock screen player controller opens the wrong web app, which has no audio…
0
votes
0 answers

If android auto is playing and I launch the app for the first time it gets stuck on the startup screen

if I launch the app and then android auto everything works correctly, even if then I close and reopen the app, it is launched. If, on the other hand, I open the app on android auto first and then open the app on the smartphone, it freezes on the…
Federico
  • 41
  • 8
0
votes
1 answer

If launch first android auto this don’t show tracks

Hello do u know why if I connect the smartphone to the car radio, if I don't open the app before and open directly the android auto, this show me an empty list and then when I open the app stuck on launch screen?
Federico
  • 41
  • 8
0
votes
0 answers

how can fix "LateInitializationError: Field '_audioHandler' has not been initialized" in audio_service package in Flutter

I'm working with the audio_service package in Flutter, and I'm trying to use the _audioHandler variable in my code. However, when I try to run the app, I get the following error message: LateInitializationError: Field '_audioHandler' has not been…
ojpoi
  • 21
  • 2
0
votes
0 answers

Can't fully control settings in audio_services

I can't fully control settings in audio_services. When I only have MediaControl.pause, it only displays the pause button. But as soon as I add MediaControl.skipToPrevious and MediaControl.skipToNext they appear regardless of…
Redactor
  • 3
  • 2
0
votes
0 answers

Flutter audio_service package: how remove audioplayer in the navigation bar?

I am using the package just_audio and audio_service in my Flutter app. To simplify: I have 5 buttons; each one has an audio file associated with it. When a button is pressed the corresponding audio starts and a popup opens. If the user closes the…
0
votes
1 answer

Flutter android Unhandled Exception: FirebaseApp name [DEFAULT] already exists (getting this error twice)

I am using package audio_service Issue - when I use the audio service package and try to run the app it returns an error where firebase is initialized. If I do not use the audio service package, the app is working fine, meaning no error message…