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

Fatal exception : Couldn't inflate contentViewsjava.lang.IllegalArgumentException: setShowActionsInCompactView: action 0 out of bounds (max -1)

i use test lab to find bugs on my apps and i have an but that i can't find the origins. I think it came from just_audio or audio_service. This is the test issues : android.app.RemoteServiceException: Bad notification(tag=null, id=1124) posted from…
0
votes
0 answers

How to set audio handler with carousel slider in flutter?

Currently i am working on music app and according to my ui i have to manage audio player with carousel slider.The without carousel slider it is working fine but with carousel slider when click on the shuffle or when onPageChanged called, i used the…
0
votes
0 answers

How to update mediaItem from firestore stream when app in background

Currently, when the app is in the foreground it updates the player with the current playing media item from a firebase stream. The player is updated using the method below in the BaseAudioHandler: @override Future updateMediaItem(MediaItem…
James
  • 693
  • 1
  • 13
  • 27
0
votes
1 answer

Flutter platform player already exists just audio

So happy with the just audio flutter package from Ryan Heise for our radio app. Best package I know. We have no problems with iOS, but on Android now some strange behavior, especially on Android 10. I'm also using the audio service and audio session…
Simon
  • 13
  • 3
0
votes
1 answer

flutter audio_service, how to set an interval between two audios

I make a looping function and support running in background, so I choose audio_service and just_audio. But I want to control the interval between two audios playing. I hope the first one has finished playing, set 1 second and then play the second…
0
votes
0 answers

Flutter Just Audio Error on await _player.setAudioSource(_playlist);

I am facing issue with just_audio, when I set comment await _player.setAudioSource(_playlist); this line, the app started opening, but when I want to use to set playlist then app get crashed every time. Version just_audio: ^0.9.29 audio_service:…
Sandeep
  • 2,573
  • 3
  • 21
  • 28
0
votes
0 answers

{Audio-Service] Can we change the url String so we can load audio files from memory using "Uint8List" variable in flutter?

In class MediaItem can we use "Uint8lint" variable read from Cloud Storage to be loaded in memory, so we can call it in Audio-Service 0.18.7? Is this thing even possible to do in Audio-Service? What I want to achieve is how we can protect the audio…
Wege
  • 177
  • 2
  • 11
0
votes
1 answer

How to make just audio flutter handler always play stream from live position, not from saved position after pause?

After pausing icecast radio player app with just audio and audio service packages from Ryan Heise, I wait a little and tap play again, the stream continues to play from saved position with data in buffers, then suddenly (I think when buffers are…
Simon
  • 13
  • 3
0
votes
1 answer

How to combine flutter audio_service and icymetadata streambuilder?

I am using Ryan Heise just audio and audio service flutter packages for Radio player app. Started out using AudioPlayer() in main.dart with a StreamBuilder listening to player.icymetadatastream and controlbuttons.dart with a stream builder listening…
Simon
  • 13
  • 3
0
votes
1 answer

What is AudioService.browsablerootid

I was reading documentation of audio_service flutter and was going through a couple of examples while analyzing mediaLibray i got a doubt regarding AudioService.browsableRootId what it is? is it denoting any particular album if so then why in id…
0
votes
1 answer

Deprecation error in audio_service plugin flutter

I tried to run an application but it is giving the following deprecation error. I have upgraded to flutter 3 since then I am getting this error. I have tried flutter clean, pub get, pub repair. Still, the error is constant. I am using …
0
votes
1 answer

Issue with notification in audio_service

when I Start my App in Debug Mode the notification Widget works perfect. But when I compile a Release the Buttons in the notification bar not showing? Android 10 on Oppo A15.
0
votes
0 answers

Using Wakelock with Audio Service in flutter

I have a requirement to give the user the option to keep specific screen in the app awake so the screen will not be switched off automatically in order to give the user the time to read the content. at the same time the application uses…
0
votes
1 answer

Flutter audio_service add item from json

audio_service new update removed fromjson in model class .. how can i add media item from json? My json look like this [ { "id": "http://581.22.00.66:8500/1?type=http", "title": "test", "artist": "test", "album": "test", …
Nagaraj
  • 87
  • 1
  • 8
0
votes
1 answer

Bundle ID breaks audio in the background

The audio works in the background as long as my bundle id is "dev.suragch.flutterAudioServiceDemo" (not mine) but if I change bunde id to my "com.ambee.new": — background stops working. What's going on? How to make it work with my bundleId…
Tomas Baran
  • 1,570
  • 2
  • 20
  • 37