From c982880194c9a3d477e4a60aae75d9c52c245c35 Mon Sep 17 00:00:00 2001 From: Jan-Ivar Bruaroey Date: Wed, 13 Aug 2025 14:42:21 -0400 Subject: [PATCH] Clarify that generateKeyFrame() rejects immediately for audio receivers --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 80eaae5..a7ca5aa 100644 --- a/index.bs +++ b/index.bs @@ -998,7 +998,7 @@ or Full Intra Refresh (FIR), queue a task to perform the following steps: The generate key frame algorithm, given |promise|, |encoder| and |rid|, is defined by running these steps: 1. If |encoder| is undefined, reject |promise| with {{InvalidStateError}}, abort these steps. -1. If |encoder| is not processing video frames, reject |promise| with {{InvalidStateError}}, abort these steps. +1. If |encoder| does not belong to a video {{RTCRtpReceiver}}, reject |promise| with {{InvalidStateError}}, abort these steps. 1. If |rid| is defined, but does not conform to the grammar requirements specified in Section 10 of [[!RFC8851]], then reject |promise| with {{TypeError}} and abort these steps.