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

[Feature Request] remaining duration #19

Closed
cedvdb opened this issue Aug 9, 2021 · 4 comments
Closed

[Feature Request] remaining duration #19

cedvdb opened this issue Aug 9, 2021 · 4 comments

Comments

@cedvdb
Copy link

cedvdb commented Aug 9, 2021

Thanks for the package and the tests written, they are always appreciated.

It would be nice if there was an option to display the remaining duration. In other words, instead of displaying the current duration position and the total one, just the duration remaining would be displayed. Such that if an audio is a 10 second clip, at the start it would display 00:10, then after 5 seconds 00:05, then after another 5 seconds 00:00 (only one duration displayed at a time).

Alternatively let the user decide how to display the duration, as other people may have other requirements (like displaying millis for example)

@suragch
Copy link
Owner

suragch commented Aug 9, 2021

You can set the time label type like so:

timeLabelType: TimeLabelType.remainingTime,

@cedvdb cedvdb closed this as completed Aug 9, 2021
@cedvdb
Copy link
Author

cedvdb commented Aug 15, 2021

The minus in front of the right label looks very weird. Also showing only the time remaining would be better (see whatsapp audio player). This is a suggestion, I might fork if needed.

@suragch
Copy link
Owner

suragch commented Aug 15, 2021

You can fork for now for a quick (and maybe the best) solution. Another option would be to use the no label option and then add your own Text widget labels in the normal widget tree.

Alternatively, you could open a new feature request for something like TimeLabelType.remainingTimeNoDash. If there is sufficient interest from the community I'll add it.

@cedvdb
Copy link
Author

cedvdb commented Aug 16, 2021

The no label solution suits me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants