playbackRestarts property

  1. @override
Stream<void> get playbackRestarts
override

Fires once per MPV_EVENT_PLAYBACK_RESTART — libmpv's own signal that "playback was reinitialized, usually at start of playback and after seeking". This is the precise, native TTFF landing signal (2026-09-29 update to §D1); kernels/platforms where subscribing to it failed silently degrade to an empty stream, and the QoE layer falls back to the buffering-edge heuristic.

每次 MPV_EVENT_PLAYBACK_RESTART 触发一次——libmpv 自己的信号,语义是 "播放被重新初始化,通常发生在起播和 seek 完成时"。这是精确的原生 TTFF 落地信号(§D1 的 2026-09-29 更新);订阅失败的内核/平台会静默降级为空流, QoE 层退回 buffering 边沿的启发式判定。

Implementation

@override
Stream<void> get playbackRestarts => _restarts.stream;