Skip to content

Commit 4bd0792

Browse files
authored
s/NotAllowedError/TypeError for invalid rid & reference RFC8851. (#193)
* s/NotAllowedError/TypeError for invalid rid & reference RFC8851. * Indent by 1 space to fix problem
1 parent 49f981b commit 4bd0792

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,9 @@ The <dfn attribute for="RTCRtpScriptTransformer">writable</dfn> getter steps are
617617
The <dfn abstract-op>generate key frame algorithm</dfn>, given |promise|, |encoder| and |rid|, is defined by running these steps:
618618
1. If |encoder| is undefined, reject |promise| with {{InvalidStateError}}, abort these steps.
619619
1. If |encoder| is not processing video frames, reject |promise| with {{InvalidStateError}}, abort these steps.
620-
1. If |rid| is defined, validate its value. If invalid, reject |promise| with {{NotAllowedError}} and abort these steps.
620+
1. If |rid| is defined, but does not conform to the grammar requirements specified
621+
in Section 10 of [[!RFC8851]], then reject |promise| with {{TypeError}} and abort
622+
these steps.
621623
1. [=In parallel=], run the following steps:
622624
1. Gather a list of video encoders, named |videoEncoders| from |encoder|, ordered according negotiated RIDs if any.
623625
1. If |rid| is defined, remove from |videoEncoders| any video encoder that does not match |rid|.

0 commit comments

Comments
 (0)