Skip to content

Commit f5e9804

Browse files
committed
Fix nit by using |frameSource| as parameter.
1 parent 7e346cf commit f5e9804

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

index.bs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,8 +1113,9 @@ or Full Intra Refresh (FIR), queue a task to perform the following steps:
11131113

11141114
## KeyFrame Algorithms ## {#KeyFrame-algorithms}
11151115

1116-
The <dfn abstract-op>generate key frame algorithm</dfn>, given |promise|, |encoder| and |rid|, is defined by running these steps:
1117-
1. If |encoder| is not an [=encoder=], reject |promise| with {{InvalidStateError}}, abort these steps.
1116+
The <dfn abstract-op>generate key frame algorithm</dfn>, given |promise|, |frameSource| and |rid|, is defined by running these steps:
1117+
1. If |frameSource| is not an [=encoder=], reject |promise| with {{InvalidStateError}}, abort these steps.
1118+
1. Let |encoder| be |frameSource|.
11181119
1. If |encoder| does not belong to a video {{RTCRtpSender}}, reject |promise| with {{InvalidStateError}}, abort these steps.
11191120
1. If |rid| is defined, but does not conform to the grammar requirements specified
11201121
in Section 10 of [[!RFC8851]], then reject |promise| with {{TypeError}} and abort
@@ -1151,8 +1152,9 @@ By resolving the promises just before enqueuing the corresponding key frame in a
11511152
the resolution callbacks of the promises are always executed just before the corresponding key frame is exposed.
11521153
If the promise is associated with several layers, it will be resolved once key frames have been enqueued for all of them.
11531154

1154-
The <dfn abstract-op>send request key frame algorithm</dfn>, given |promise| and |depacketizer|, is defined by running these steps:
1155-
1. If |depacketizer| is not a [=depacketizer=], reject |promise| with {{InvalidStateError}}, abort these steps.
1155+
The <dfn abstract-op>send request key frame algorithm</dfn>, given |promise| and |frameSource|, is defined by running these steps:
1156+
1. If |frameSource| is not a [=depacketizer=], reject |promise| with {{InvalidStateError}}, abort these steps.
1157+
1. Let |depacketizer| be |frameSource|.
11561158
1. If |depacketizer| does not belong to a video {{RTCRtpReceiver}}, reject |promise| with {{InvalidStateError}}, abort these steps.
11571159
1. [=In parallel=], run the following steps:
11581160
1. If sending a Full Intra Request (FIR) by |depacketizer|'s receiver is not deemed appropriate, [=resolve=] |promise| with undefined and abort these steps.

0 commit comments

Comments
 (0)