Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
描述
修复一起看时网络抖动导致的连续向前跳转,并减少恢复播放、异步 seek 期间的重复校正。
原实现把服务端补偿后的目标位置当成本地实际位置回传,补偿误差会不断反馈到房间进度。本次普通心跳改为报告实际播放器位置,保留本地操作确认和服务端强制同步确认的处理。
同步控制新增轻量协调器:等待操作返回后重新采样,再通过后续实际播放状态/位置确认执行结果;合并普通心跳,保留显式控制;超过 1 秒的同方向偏差持续 2 秒后才自动 seek。观察等待最多 5 秒,超时后重新收集偏差证据。实际播放状态与本地操作意图分开,退出/重连时废弃旧会话工作。
不包含调速、未来定时启动、#2658 或其他功能改动。
关联的 Issues
Fixes #1588
PR 类型
AI 辅助开发
AI 辅助模型: OpenAI Codex(当前会话未提供可核验的完整模型变体名称,待作者补充)。
本改动主要由 AI 实现,并经过独立 Agent 代码审查。本 PR 保持 Draft:上述涉及作者本人理解程度的选项不由 Agent 代为勾选;技术描述与验证记录由 Codex 整理,正式送审前待作者亲自确认、补充。
提交前检查
Agent 已阅读贡献指引并完成下述自动化验证;作者本人确认项暂留空。
附注
验证结果:
flutter test --no-pub:222 项通过,含 4 项协议回归和 5 项协调器测试。flutter analyze --no-pub --no-fatal-infos --fatal-warnings:无错误、无警告,17 条既有 info 均不在本次改动文件内。git diff --check通过;独立代码审查未发现剩余阻塞问题。49e2a1bf36e5be1fc397c5bea14bed350609a9ed。验证边界:真实服务端搭配模拟异步播放器时钟,直接执行生产协议客户端及协调器;尚未完成 GUI/原生播放器验收。Flutter 验证使用本机 3.47.6 / Dart 3.13.5 和缓存依赖,仓库声明的 Flutter 3.47.7 尚未进行干净环境验证。没有修改 SDK 要求或依赖声明。实验日志和脚本保存在本地 ignored build 目录,不包含在本 PR 中。