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: Uri.parse(bookArt),
artist: "artist",
album: bookName
)
);
_player.seekToNext();
and whenever i play any audio it starts from wherever i left from queue, which obviously means i have to clear out the queue. So how can i do that?
package i am using is audio_service one-isolate branch