requestKeyframe method

void requestKeyframe()

External feedback hook (e.g. RTCP PLI/FIR from a remote receiver): promote the next encodeFrame call to a keyframe even if the regular keyframeInterval / scene-cut / drop-recovery triggers would not have fired. The request is consumed on the next call. Calling this between frames is idempotent.

Implementation

void requestKeyframe() {
  _pendingKeyRequest = true;
}