Skip to content

Commit 1cfafbd

Browse files
authored
Merge pull request #277 from jan-ivar/clarifygenkeyframe
Clarify that generateKeyFrame() rejects immediately for audio receivers
2 parents 9cf200f + c982880 commit 1cfafbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ or Full Intra Refresh (FIR), queue a task to perform the following steps:
998998

999999
The <dfn abstract-op>generate key frame algorithm</dfn>, given |promise|, |encoder| and |rid|, is defined by running these steps:
10001000
1. If |encoder| is undefined, reject |promise| with {{InvalidStateError}}, abort these steps.
1001-
1. If |encoder| is not processing video frames, reject |promise| with {{InvalidStateError}}, abort these steps.
1001+
1. If |encoder| does not belong to a video {{RTCRtpReceiver}}, reject |promise| with {{InvalidStateError}}, abort these steps.
10021002
1. If |rid| is defined, but does not conform to the grammar requirements specified
10031003
in Section 10 of [[!RFC8851]], then reject |promise| with {{TypeError}} and abort
10041004
these steps.

0 commit comments

Comments
 (0)