Is there any way to automatically detect the duration of the track?
Currently if you don't specify the duration it won't let you fast forward the audio, I've seen other players auto-detect this, is there any way to do it with this plugin?
@lain-ke , the instructions for the option you selected mention "GitHub issues are for tracking bug reports, feature requests and documentation requests.".
Therefore, please submit the appropriate type of issue, and ensure it conforms to the template and you supply all requested information.
I did, three times, you are just closing it with no reason. I don't get why can't you just answer here.
I gave the reason above, but I shall elaborate on it below since you asked:
You selected the issue template called "I want help writing my application", and when you selected that, there were instructions provided to you explaining that I do not provide this kind of support, and those instructions linked you to other places where you can ask for such help such as Stackoverflow.
You continued to post your questions here anyway, 4 times, disregarding my instructions. I am sorry the reasons for closing were not clear before, but I hope the reason is clear now.
I don't get why can't you just answer here.
I technically can, but I choose not to because:
As I have requested 4 times, if you want to use this GitHub issues page, please use it for posting real issues on the project. Questions are not issues, they are requests for help, and that is what Stackoverflow and Gitter are more appropriate for.
If I ever do have more time in the future, I will add an issue template for asking questions, but at present, I do not offer that option due to the time burden it would create.
But you DO answer other's questions:
https://github.com/ryanheise/audio_service/issues/239
https://github.com/ryanheise/audio_service/issues/211
https://github.com/ryanheise/audio_service/issues/262
https://github.com/ryanheise/audio_service/issues/260
https://github.com/ryanheise/audio_service/issues/261
https://github.com/ryanheise/audio_service/issues/241
And more...
Plus, answering other's questions would help other people use this plugin as it is a bit hard to understand. You said you wanted to spend your time improving the plugin, but if you don't spend time helping people to understand it, those improvements will be for nothing as people who don't know will just switch to another plugin.
Of course I appreciate that you as a volunteer spend time on this plugin, but It would also be nice to help others who don't understand.
I use the audio player library to give me back the "Max Duration" of the song, then using .copyWith I give it to the MediaItem
MediaItem trackMetaData = new MediaItem(
id: someID,
album: someAlbum,
title: someTitle,
artist: someArtist,
artUri: someImage,
displayTitle: someTitle,
displayDescription: someDescription,
displaySubtitle: someSubtitle,
);
_audioPlayer.setUrl(trackMetaData.id).then((dur) {
trackMetaData = trackMetaData.copyWith(
duration: dur.inMilliseconds,
);
AudioServiceBackground.setMediaItem(trackMetaData);
_audioPlayer.setAutomaticallyWaitsToMinimizeStalling(false);
_audioPlayer.play();
});
Thanks a lot!!!
Most helpful comment
I use the audio player library to give me back the "Max Duration" of the song, then using
.copyWithI give it to the MediaItem