fix(player): 记忆桌面端播放器音量,避免每次打开视频都重置为最大#2273
Conversation
Feat/angets适应
add skills
fix agents
Co-authored-by: 文质彬彬的大锤 <liangyuR@users.noreply.github.com>
Co-authored-by: 文质彬彬的大锤 <liangyuR@users.noreply.github.com>
Document the five-PR rollout for pageUrl-based episode identity, including PR2 EpisodeRef scope and acceptance criteria. Co-authored-by: Cursor <cursoragent@cursor.com>
- 引入 EpisodeRef 承载播放集数页地址和排序号 - 播放切集与媒体队列复用统一集数解析结果 - 更新 EpisodeRef 单元测试
- 在 PlaybackInitParams 中引入 sortNumber,用作剧集排序参考。 - 更新 EpisodeRef,新增 sortNumber,并补充在线与离线上下文中的详细解析说明。
- 合并 codex/refactor-episode-ref-upstream,为 PR3 历史 pageUrl 主键改造准备基础。
Co-authored-by: 文质彬彬的大锤 <liangyuR@users.noreply.github.com>
fix(player): 记忆桌面端播放器音量
Co-authored-by: 文质彬彬的大锤 <liangyuR@users.noreply.github.com>
Set up Cursor Cloud dev environment for Kazumi
Code Review SummaryStatus: No Issues Found | Recommendation: Merge This increment merges the "unified episode identity" work into the branch: history progress is now matched by The Note: Files Reviewed (changed code)
Previous Review Summaries (2 snapshots, latest commit c7ab691)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit c7ab691)Status: No Issues Found | Recommendation: Merge The latest commits only remove two explanatory comments in Note: deleting Files Reviewed (2 files)
Previous review (commit 0733b0b)Status: No Issues Found | Recommendation: Merge The fix is well-scoped: desktop player volume is now persisted via the new Files Reviewed (3 files)
Reviewed by claude-4.8-opus-20260528 · Input: 4.5K · Output: 25.2K · Cached: 1.3M |
Refactor/pr3 history pageurl
- 合并 upstream/main 至 fork main - 保留 fork-only 文档与本地测试补充
- 为单条 Progress 记录 episodePageUrl 并优先按 URL 匹配 - 兼容旧集数进度并在查询、更新、同步路径懒回填 URL - 增加历史仓储、同步和播放恢复定位测试
|
移除注释,这里的注释过于显而易见 移除测试,此测试本质在测试 hive 存储可靠性,没有必要 |
Co-authored-by: 文质彬彬的大锤 <liangyuR@users.noreply.github.com>
### Refactor:按页面 URL 区分历史进度
…p-volume-upstream-a1ea # Conflicts: # lib/pages/player/player_controller.dart Co-authored-by: 文质彬彬的大锤 <liangyuR@users.noreply.github.com>
问题
Windows/桌面端每次打开视频音量都重置为最大(100)。原因:桌面端音量是 media_kit (mpv) 的应用内音量,从未持久化。
PlayerController按视频路由注册为 singleton,离开视频页后销毁,下次打开是全新实例,volume回到哨兵值-1,init 时被硬编码为100。修复
lib/services/storage/settings_keys.dart新增持久化设置defaultVolume(double,默认100.0,分组player),并加入all注册列表。PlayerController.init()桌面分支用GStorage.getSetting(SettingsKeys.defaultVolume)替代硬编码100,恢复上次音量。setVolume、手势经finishVolumeGesture)后写回存储,仅在取整值变化时写入以避免冗余写。测试
flutter analyze --no-fatal-infos --fatal-warnings(无 warning/error,仅既有 info 级 lint)flutter test test/settings_default_volume_test.dart(验证新设置默认值、分组、注册、持久化键名)