Questions tagged [audio-service]

audio_service plugin for Flutter

Use for questions about the audio_service plugin for Flutter

118 questions
0
votes
0 answers

How I can get audio processing state of a single mediaItem from a queue

I have been in trouble for two days. I have a flutter project in which i am using audio services package (version 0.18.9) Now my requirement is to get audio processing complete state against a single media item but in the updated version it just…
0
votes
0 answers

calculate total overall audio play time audio service flutter for analytic purpose

calculate overall audio played in session using audio_service plugin flutter void _listenToPlaybackState() { _audioHandler.playbackState.listen( (playbackState) { final isPlaying = playbackState.playing; …
0
votes
2 answers

Flutter, What is different between onPressed: () {...}. and onPressed: methodCall()

I am working on audio_service example. and I seems, auidoHandler.play or pause ..else callings work only like below onPressed: auidoHandler.play not like onPressed : () -> {auidoHandler.play} I did not have time to learn about dart or flutter…
0
votes
0 answers

Flutter Audio_service click function not triggered for iOS

I am trying to do a custom action for the next and previous clicks in my headset. The way to do it is by using the click() based on the documentation. I used it and it is working perfectly for Android, but iOS it is not getting triggered at all.…
medo Ha
  • 21
  • 2
0
votes
0 answers

Lock screen audio player notification not appearing when target SDK is 33

defaultConfig { applicationId "com.aa.aaaa" minSdkVersion 19 targetSdkVersion 33 versionCode flutterVersionCode.toInteger() versionName flutterVersionName multiDexEnabled true } When the target SDK is 33, I have a problem…
Priyank
  • 1
  • 1
0
votes
2 answers

Cant dismiss notification - setActive does not work

I cant dismiss ongoing notification. It cant be dismissed programmatically - it always stays visible. User can swipe it away. Implementation is same as here: implementation example I want it to dismiss when the user closes this screen. This does not…
0
votes
0 answers

I am unable to display the player controller in the lockscreen on Samsung devices when using the audio service in flutter

I'm using a Samsung device m32 and I'm not getting the lock screen player controller and I am using audio_service and just_audio for play .mp3 in android devices And Also I am not getting above issue in other devices except samsung device below is…
0
votes
0 answers

How to fetch recent played songs with last played duration of songs with audio service and just audio in flutter?

If it is not possible with audio_service and just_audio package then is it possible to directly fetch recently played songs list with the use of any flutter packages?
0
votes
0 answers

Audio service package does not display artwork In Android Auto

I am making Music app in Flutter. For that, I am using audio service package. Package displays song artwork for my phone, but It does not display artwork for Android Auto.I am using below snippet for broadcasting media…
Ruchit Soni
  • 166
  • 5
0
votes
0 answers

play loop ringtone in background -Flutter iOS-

I want the audio service to play a custom ringtone that loops when I get a notification on iOS or Android. The sound worked flawlessly in both the background and foreground on Android, as well as in the foreground but not in the background on iOS. I…
0
votes
1 answer

audio_service crashed with error at audio_service_engine

I uploaded a Flutter app on PlayStore and some cases was reported and the log is like below: Exception java.lang.RuntimeException: at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3654) at…
dfassf
  • 142
  • 10
0
votes
0 answers

Flutter(iOS) Start Audio_Service When App is Recieving Notification Terminated and Background Status

I need to play audio to app users when recieve Firebase Cloud Messaging notification on background and terminated. FCM _backgroundhandler works when background, foreground and terminated. Everything is working on android. I examine all the status on…
0
votes
0 answers

Flutter audio_service MediaAction for SkipToNext/Previous trigger Click-Event internally

it seems to me, that the MediaActions for skipToNext and skipToPrevious in the audio_service package for flutter internally do not trigger the corresponding methods, but trigger the Click-Event with the MediaButton-Value, that would be used for…
0
votes
0 answers

How to use Audio_service with URL link which will be obtained from API

How to use Audio_service playing URL link which will be obtained from API. Ex: Use _player.setAudioSource(AudioSource.uri(Uri.parse(URL))); where URL will be obtained from http.Response Please help me I need to get Url String from internet, and need…
Wisdom
  • 1
  • 1
0
votes
1 answer

The playback of "audiolayers" and "audio_service" is interrupted by other media applications

I use audiolayers and audio_service plays audio. It works well. When I open other audio applications (such as Apple Music) to play music, my app will stop playing. This is OK. But when I return to my app to query the current playing status, it is…