Skip to content

Commit

Permalink
s/NotAllowedError/TypeError for invalid rid & reference RFC8851. (#193)
Browse files Browse the repository at this point in the history
* s/NotAllowedError/TypeError for invalid rid & reference RFC8851.

* Indent by 1 space to fix problem
  • Loading branch information
jan-ivar committed Jun 29, 2023
1 parent 49f981b commit 4bd0792
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,9 @@ The <dfn attribute for="RTCRtpScriptTransformer">writable</dfn> getter steps are
The <dfn abstract-op>generate key frame algorithm</dfn>, 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 |rid| is defined, validate its value. If invalid, reject |promise| with {{NotAllowedError}} and 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.
1. [=In parallel=], run the following steps:
1. Gather a list of video encoders, named |videoEncoders| from |encoder|, ordered according negotiated RIDs if any.
1. If |rid| is defined, remove from |videoEncoders| any video encoder that does not match |rid|.
Expand Down

0 comments on commit 4bd0792

Please sign in to comment.