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 allows me to get about the whole queue means when the last queue item will reach to end then show me the completed state.
/// Remove all previous queue items
await audioHandler.stop();
/// Register the new queue of media items
await audioHandler.updateQueue(mediaItems);
await audioHandler.skipToQueueItem(quran_page);
///Here i want get changes for single MediaItem current it works for whole queue
audioHandler.playbackState.listen((PlaybackState state) async {
if (state.playing == false &&
state.processingState == AudioProcessingState.completed) {
await onAudioComplete(quran_page);
}
});