-
Notifications
You must be signed in to change notification settings - Fork 2
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
Audio Player: actions #6
Comments
The « Next » and « Previous » actions are implemented (see issue #5). |
A constant defines from which currentTime the « Previous » action rewinds the current audio file (3 seconds) ; when the currentTime is smaller than this constant, the previous audio file is set and then played. |
A click on the « Random » button plays a random audio file, and keeps playing another random audio file whenever the « on ended » event is triggered. To cancel it, just click on an audio file. Each randomly played audio file is pushed in a history list ; it allows to play back the previous audio files. However, I'm not satisfied with the current behaviour of the « Random » action ; I think it would be better to have something similar to Spotify : the « Random » action is like a checkbox and there is a « Play/Listen » button to start the tracks. I'm also not satisfied with the code ; it needs to be reviewed, refactored and simplified. I have spent too much time on this issue ; I'm letting it open and will come back to it as soon as possible to improve the random behaviour and the corresponding code. |
Implementation of the following actions:
The text was updated successfully, but these errors were encountered: