Relative Content

Tag Archive for flutterjust-audioaudio-service

Flutter AudioService Destroys Itself When Looking At Notification iOS

I am trying to create an music app with audio_service and just_audio packages. Everything works but when I pull down the notification on my real iPhone device it stops and destroys the notification. That also happens if I lock the phone and then unlock it or if I just simply put the app in the background and then come back to it, it just seems to destroy the instance of the player (no sound is playing and notification is destroyed). Then I cannot play any other song until I reset the app. I think the problem is with how I configured the AudioServiceHandler class. Here is the AudioServiceHandler class code:

Flutter Music Resume when app closed using audio service package

I’m facing a problem my music is playing successfully everything is working is but the problem is that i want to resume the the music from notifications MediaAction Buttons i’ve stored teh last queue in hive now i want to get access when that button is pressed so that i can load the recently played music and resume it.

Show media notification via audio service in flutter

I’m using just_audio package for playing music in my app.
I want to display media notification while playing audio that has next, previous,resume,pause and stop buttons.
I’ve added audio_service package to my project and configured it as shown below: