Add the ability to repeat a single video in a playlist#779
Add the ability to repeat a single video in a playlist#779HankFreeman1 wants to merge 1 commit intodamontecres:mainfrom
Conversation
a26352f to
545880b
Compare
|
Very cool, thank you! It might be a good idea tho to also add the loop toggle to single videos to temporary overwrite the global setting. Many video players do it that way. |
Glad you like it!
Not a bad idea, but is there any reason as a user not to choose "loop" as the default option in this case? If you don't want to watch it again, you just back out after it loops. You'd back to back out anyway, right? Maybe @damontecres will have an opinion! It shouldn't be too hard to always show the loop button if that's what we want. 😊 |
There was a problem hiding this comment.
I'd rather not make any changes to the old UI. I don't want to vet any new functionality in it.
| onControllerInteraction = onControllerInteraction, | ||
| ) | ||
| if (isPlaylist) { | ||
| PlaybackButton( |
There was a problem hiding this comment.
I don't want another button on the main playback controls. But this could be moved to the More menu on the left.
There was a problem hiding this comment.
Understood. Unfortunately I find that placement super convenient. I probably wouldn't even use this feature if it were tucked in a menu. Maybe it could be optional to display it with the main controls?
There was a problem hiding this comment.
Where did these vectors come from?
There was a problem hiding this comment.
These were AI-generated based on the existing vectors you had. Apologies, I probably should've called that out.
Sorry, I'm not sure I understand this idea. Can you elaborate? |
| PlaybackAction.ToggleRepeatOne -> { | ||
| repeatOneEnabled = !repeatOneEnabled | ||
| player.repeatMode = | ||
| if (repeatOneEnabled) Player.REPEAT_MODE_ONE else Player.REPEAT_MODE_OFF |
There was a problem hiding this comment.
This needs to be reset back to the global setting. Which is either OFF or REPEAT I believe
|
Hey, thanks for the feedback, I really appreciate, and totally understand your concerns. That said, this change is working perfectly for my use case, so I think most likely I'll just close this PR and keep the change locally. Of course if you or anyone else wants to take anything I did and modify it to work better for your project, by all means please do! I will keep the branch around. |
545880b to
d4ea2f6
Compare
For #766, this PR adds a "repeat current video" toggle to the player controls when playing a playlist.
Notes
Demo
Apologies that the demo is very clunky. My CCwGTV is already slow, and the debug version of the app runs even slower, and then I'm trying to capture video over adb. 😆
scrcpy_uddWI9zApB.mp4