This repository was archived by the owner on Jun 4, 2026. It is now read-only.
Repository navigation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
决策
录制包内
timestampMs是唯一事实时间轴。媒体元素不直接作为全局状态源,必须通过MediaClockAdapter在 timeline time 和 media currentTime 之间映射;有媒体且 ready 时,播放推进优先参考媒体时间。备选方案
performance.now()推进事件,不考虑媒体漂移。media.currentTime。理由
最新方案要求音视频听感优先,同时防止媒体 currentTime 和事件时间线分裂。MediaClockAdapter 支持单 WebM segment,也能为 P1 分段媒体扩展保留空间。
影响
正常播放时 drift 绝对值应小于 250ms,超过阈值通过 adapter seek 纠偏。媒体 stalled/buffering 超过 500ms 时暂停事件推进,超过 2s 可让用户选择继续纯事件流回放。
All reactions