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 to get audio samples/amplitude/frequency from streaming audio in flutter [audio_service]

I am using audio_service plugin for play audio from live streaming link. It's working fine but now i want to display music visualizer so i want some data from streaming audio like live sample bytes/ amplitude (db) / frequency so i can animated my…
Nikhil Vadoliya
  • 1,542
  • 10
  • 17
0
votes
1 answer

Tracking events from audio service in flutter

Is there a way to track if we are triggering rewind and fast forward and skipNext and skip to previous?
ZlatiP
  • 185
  • 6
0
votes
1 answer

How to implement audio service with audioplayers flutter

Below code shows how i am using audioplayers without audio service playFromFile(List textList, seek) async { for (int i = seek; i < textList.length; i++) { setState(() { newSeek = i; }); itemScrollController.scrollTo( …
0
votes
1 answer

How to hide ios lock screen control button using flutter audio_service package

I am new to flutter. I am using flutter audio_service to play music in background. I would like to hide control buttons shown in ios lock screen. I followed to this tutorial by Suragch. I commented out the code that show control, but it only…
XiaoHui
  • 53
  • 6
0
votes
2 answers

How can i clear the queue of media item in audio_service

I tried updateQueue([]) to kinda reset the queue (which is not working). And why i want to do this is because i am adding mediaItem on skipToNext like below mediaItem.add( MediaItem( id: lecture.url!, title: lecture.name!, artUri:…
Gurkarn Singh
  • 23
  • 1
  • 3
0
votes
2 answers

How can I connect listview and audio player using audio_service and just audio

How can I connect my listview with audio player page using just_audio and audio_service.In audio service, all data is added to queue and play from first song. I want to start from index of item that is my click.How can I do that?Any example?
Neural
  • 370
  • 1
  • 11
0
votes
1 answer

Changing Audio Source In audio_service and just_audio (Flutter)

I am working on my first Flutter app which implements basic stream functionality. Upon starting, the app loads a stream from source A. The app contains navigation menus to allow the user to play streams from additional sources B, C, D... etc. The…
John Harrington
  • 1,314
  • 12
  • 36
0
votes
1 answer

flutter audio_service and just_audio is not working with navigation on iOS

I have project with audio_service and just_audio. It is working fine on Android. But It is not working on iOS. I found out that it is happening because of the navigation route. I have attached the example project. Example If I call the Player screen…
Alex Aung
  • 2,637
  • 5
  • 34
  • 63
0
votes
1 answer

MediaState stream ConnectionState stays on waiting - audio_service flutter

I'm trying to provide my audioHandler on my Player class, but something weird is happening When I enter the screen, the StreamBuilder will go active just fine but if i pop and navigate to the screen again the stream connect will stay on 'waiting'…
0
votes
0 answers

firebase + audio_service: application stuck on splash after push notification when app is terminated

Short issue description After added audio_service, my application is stuck on splash screen after closed from background and push notification (firebase) is received. In details My application is using the following plugins: firebase_messaging…
Yaniv Shaked
  • 698
  • 6
  • 12
0
votes
0 answers

Rewind an HLS live stream

I'm using an HLS url to stream live radio. It's set up to send 12 - 10 seconds chunks of audio, so two minutes total. I can listen to position and it will give me values up to about 1:47, then drop to 1:37. I'm assuming that is normal behavior for…
swiftymf
  • 21
  • 4
0
votes
1 answer

Can I use audio-service on Android without renaming main acitivty?

I'm using a maps API in my project, which needs to be initialised within MainActivity, and when it's renamed in the manifest file, the maps will not work. This is my MainActivity.kt import androidx.annotation.NonNull import…
xt1zer
  • 35
  • 2
  • 7
0
votes
1 answer

Flutter audio_service set rating

I am using audio_service for background music with just_audio. Everything is working fine. I want to add heart rating style. When user play a song in playlist, there will be option to press heart icon to add into favourite list. In MediaItem there…
Alex Aung
  • 2,637
  • 5
  • 34
  • 63
0
votes
0 answers

Remove seek bar in Lock Screen controls

I'm trying to hide the seek bar while playing the live stream. It seems like not adding it to the system actions is all I need to do but it still shows up. At first it's just the bar, then after 10 seconds the start and end times appears and the…
swiftymf
  • 21
  • 4
0
votes
2 answers

No audio when iOS ring/silent switch is set to silent mode

Issue: When the iOS device is on silent, the sound being played from the app is muted. Upon some digging into the iOS code, I found that out of the 7 "audio session categories" the right one to use for a music app is playback. Question: How do I set…
Survy
  • 118
  • 7