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

Add ability to step forward/backwards single frames when watching replays #26607

Merged
merged 6 commits into from
Jan 22, 2024

Conversation

peppy
Copy link
Member

@peppy peppy commented Jan 18, 2024

I also did a bit of tidy-up on the PlaybackSettings classes, mostly stuff I missed in the initial review.

Please ignore the state of the pause/play button being wrong. It is unrelated and looks to be a framework side issue (ppy/osu-framework#6139).


CleanShot.2024-01-18.at.06.02.36.mp4

@Theighlin
Copy link

I'd like for there to be a shortcut to move frame by frame (since you can basically already move and pause without using the panel), it would make analysing replays easier.
Youtube's keys for reference are "," and "." I think they're a good default since the platform is used by so many (i'm already used to them, but have no preference)

@peppy peppy force-pushed the replay-seek-single-frame branch from e1b58f1 to 8c4af58 Compare January 18, 2024 11:13
@peppy
Copy link
Member Author

peppy commented Jan 18, 2024

I'd like for there to be a shortcut to move frame by frame

I've added these, required a bit of refactoring.

@bdach bdach self-requested a review January 22, 2024 08:53
case GlobalAction.SeekReplayBackward:
keyboardSeek(-1);
SeekInDirection(-1);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any particular reason why this seeks in second increments rather than 5-second increments like previously?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I felt like it made more sense to match the keyboard key for seeking. The difference between the two buttons previously was almost nothing, especially with the click-repeat being present (it gets fast very fast).

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough

},
new SeekButton
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Icon = FontAwesome.Solid.Backward,
Action = () => seek(-1, seek_amount),
TooltipText = PlayerSettingsOverlayStrings.SeekBackwardSeconds(seek_amount / 1000),
Action = () => replayPlayer.SeekInDirection(-1),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here, this used to be 5sec but is now 1sec.

@bdach bdach merged commit daa9279 into ppy:master Jan 22, 2024
@peppy peppy deleted the replay-seek-single-frame branch January 25, 2024 12:45
@peppy
Copy link
Member Author

peppy commented Jan 30, 2024

replay-controls.mp4

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

Successfully merging this pull request may close these issues.

3 participants