Skip to content

Reorganized PRs 3/4: Add 2.5x & Custom playback speed (#3026)#3030

Open
MasenWen wants to merge 2 commits into
open-ani:mainfrom
MasenWen:codex/custom-playback-speed
Open

Reorganized PRs 3/4: Add 2.5x & Custom playback speed (#3026)#3030
MasenWen wants to merge 2 commits into
open-ani:mainfrom
MasenWen:codex/custom-playback-speed

Conversation

@MasenWen

Copy link
Copy Markdown

Closes #3026.
Also covers #2780 and #2302.

Summary

  • add a dedicated playback speed switcher with a custom speed entry
  • support custom playback speed input with validation and bounds
  • fix state handling when current speed is not in the preset list
  • update playback speed stepping behavior and related tests

Validation

  • :app:shared:video-player:desktopTest --tests "*PlaybackSpeedControllerStateTest"
  • :app:shared:video-player:compileKotlinDesktop

Notes

  • :app:shared:compileKotlinDesktop was retried, but the rerun hit a Gradle/Kotlin daemon environment issue after module compilation had already progressed. The player-specific test and module compilation passed.

)
}
DropdownMenuItem(
text = { Text("Custom") },

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

需要翻译

val playbackSpeedAlwaysOnRequester =
rememberAlwaysOnRequester(playerControllerState, "speedSwitcher")
playbackSpeedControllerState?.also { controller ->
SpeedSwitcher(controller) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

旧的 SpeedSwitcher 是不是需要删除?

@Him188

Him188 commented May 22, 2026

Copy link
Copy Markdown
Member

是否有测试过? 确认大于 3 的倍速能流畅播放吗? 之前测试是不行的, 缓冲区不够, 可能还需要同步更新缓冲区大小

@Him188

Him188 commented May 22, 2026

Copy link
Copy Markdown
Member

请提供 UI 效果图

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

Successfully merging this pull request may close these issues.

关于自定义播放倍数的若干修改 (包含#2780 #2302)

2 participants