You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
May be i understand wrong ... Most of the codes not called in backround
example this code i added in AudioPlayerTask
` @OverRide
Future onSkipToQueueItem(String mediaId) async {
await log('XXXXXXXXXXXXXXXXXXXXXXXXXX'+mediaId.toString());
super.onSkipToQueueItem(mediaId);
}
its not giving any result i also added in main page like this
play() async {
if (await AudioService.running) {
AudioService.play();
AudioService.skipToQueueItem("5");
} else {
AudioService.start(
backgroundTaskEntrypoint: _backgroundTaskEntrypoint,
androidEnableQueue: true,
);
AudioService.skipToQueueItem("5");
}
//AudioService.replaceQueue(_queue);
}
`
I revived no log result ... i believe its working like this .. its happens some other code also
onPrepareFromMediaId, onPlayFromMediaId, onPlayMediaItem
Just i need start play with particular _queueIndex. in list list of item if i click 5 sont i want play 5 th song i need pass list index to my AudioPlayerTask... if i click 7 th item should be queue index select to 7 .. how can pass it?
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with audio_service.
May be i understand wrong ... Most of the codes not called in backround
example this code i added in AudioPlayerTask
`
@OverRide
Future onSkipToQueueItem(String mediaId) async {
await log('XXXXXXXXXXXXXXXXXXXXXXXXXX'+mediaId.toString());
super.onSkipToQueueItem(mediaId);
}
its not giving any result i also added in main page like this
play() async {
if (await AudioService.running) {
AudioService.play();
AudioService.skipToQueueItem("5");
} else {
AudioService.start(
backgroundTaskEntrypoint: _backgroundTaskEntrypoint,
androidEnableQueue: true,
);
AudioService.skipToQueueItem("5");
}
//AudioService.replaceQueue(_queue);
}
`
I revived no log result ... i believe its working like this .. its happens some other code also
onPrepareFromMediaId, onPlayFromMediaId, onPlayMediaItem
Just i need start play with particular _queueIndex. in list list of item if i click 5 sont i want play 5 th song i need pass list index to my AudioPlayerTask... if i click 7 th item should be queue index select to 7 .. how can pass it?
The text was updated successfully, but these errors were encountered: