You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 4, 2026. It is now read-only.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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 可让用户选择继续纯事件流回放。
Beta Was this translation helpful? Give feedback.
All reactions