mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 15:35:56 +03:00
[GH-ISSUE #21] Playback shuffle and looping controls #20
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @reynn on GitHub (Jan 14, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/21
So far this has been great for me, minimal issues. One thing that is keeping this from being the only thing I use is a shuffle/random option. I was looking through the code and would like to contribute code for this purpose. If this is good with you I'll spend some time looking through code to find places to update but any info would be great!
I do see there are SVG icons for the control buttons, how were these generated in case we will need more?
@jpochyla commented on GitHub (Jan 14, 2021):
Hi, happy that you like it! Although I don't use them myself, both looping and shuffling would be good to have, I agree. I think I'll eventually get to it, but if you'd like to try yourself, probably the
Queuestruct inaudio_player.rswould be the place for this. Is looping and shuffling mutually exclusive? First idea is to add aQueueBehaviourenum to the queue with variants in like ofSequential, Random, LoopTrack, LoopQueueand control it withAudioPlayercommands.All the icons are either from https://ionicons.com Figma plugin, or custom-drawn.
@reynn commented on GitHub (Jan 14, 2021):
Thanks! I'll try to tackle this over the weekend and hopefully get a PR up for you
@jpochyla commented on GitHub (Jan 28, 2021):
Initial playback looping/shuffle has been merged in. @reynn please test, so we can either close this or improve it, thanks!
@reynn commented on GitHub (Jan 29, 2021):
Thanks I'll take a look, sorry this was so delayed I was working on another project briefly
@reynn commented on GitHub (Feb 1, 2021):
For the most part this works, there is just a small bug with looping in that it never seems to play the last track. I put up PR #31 to attempt a resolution.
@jpochyla commented on GitHub (Mar 12, 2021):
Hi @reynn, I've tried to improve the queue behaviour a little in
9c5767ab7,Randomnow plays a shuffled queue instead of random tracks (and finishes after playing the last one),LoopTracknow supports Previous/Next buttons.