You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1113,8 +1113,9 @@ or Full Intra Refresh (FIR), queue a task to perform the following steps:
1113
1113
1114
1114
## KeyFrame Algorithms ## {#KeyFrame-algorithms}
1115
1115
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|.
1118
1119
1. If |encoder| does not belong to a video {{RTCRtpSender}}, reject |promise| with {{InvalidStateError}}, abort these steps.
1119
1120
1. If |rid| is defined, but does not conform to the grammar requirements specified
1120
1121
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
1151
1152
the resolution callbacks of the promises are always executed just before the corresponding key frame is exposed.
1152
1153
If the promise is associated with several layers, it will be resolved once key frames have been enqueued for all of them.
1153
1154
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|.
1156
1158
1. If |depacketizer| does not belong to a video {{RTCRtpReceiver}}, reject |promise| with {{InvalidStateError}}, abort these steps.
1157
1159
1. [=In parallel=], run the following steps:
1158
1160
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