Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Most of the code not called in background #343

Closed
Naguchennai opened this issue Jun 4, 2020 · 1 comment
Closed

Most of the code not called in background #343

Naguchennai opened this issue Jun 4, 2020 · 1 comment
Assignees
Labels
1 backlog bug Something isn't working

Comments

@Naguchennai
Copy link

Naguchennai commented Jun 4, 2020

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?

@Naguchennai Naguchennai added 1 backlog bug Something isn't working labels Jun 4, 2020
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1 backlog bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants