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
// Attributes and methods related to the transformer source
602
596
readonly attribute ReadableStream readable;
603
597
Promise<unsigned long long> generateKeyFrame(optional DOMString rid);
@@ -683,22 +677,21 @@ The <dfn attribute for="RTCRtpScriptTransform">onkeyframerequest</dfn> EventHand
683
677
684
678
## Events ## {#RTCRtpScriptTransformer-events}
685
679
686
-
The following events fire on an {{RTCRtpScriptTransformer}}:
680
+
The following event fires on an {{RTCRtpScriptTransformer}}:
687
681
688
682
* keyframerequest of type {{KeyFrameRequestEvent}} - fired when the sink determines that a key frame has been requested.
689
683
690
684
The steps that generate an event of type {{KeyFrameRequestEvent}} are as follows:
691
685
692
-
Given a {{RTCRtpScriptTransformer}}`transform`:
686
+
Given a {{RTCRtpScriptTransformer}}|transform|:
693
687
694
-
When `transform`'s `[[encoder]]` receives a keyframe request, for instance from an incoming RTCP Picture Loss Indication (PLI)
695
-
or Full Intra Refresh (FIR), queue
696
-
a task to perform the following steps:
688
+
When |transform|'s `[[encoder]]` receives a keyframe request, for instance from an incoming RTCP Picture Loss Indication (PLI)
689
+
or Full Intra Refresh (FIR), queue a task to perform the following steps:
697
690
698
-
1. Set `rid` to the RID of the appropriate layer, or undefined if the request is not for a specific layer.
699
-
1. Fire a cancelable event of type {{KeyFrameRequestEvent}}on `transform`, with {{KeyFrameRequestEvent/rid}} set to `rid`.
700
-
1. If the eventis cancelled, abort these steps.
701
-
1. Run the [$generate key frame algorithm$] with a new promise, `transform`.`[[encoder]]` and `rid`.
691
+
1. Set |rid| to the RID of the appropriate layer, or undefined if the request is not for a specific layer.
692
+
1. [=Fire an event=] named `keyframerequest` at |transform| using {{KeyFrameRequestEvent}}with its {{Event/cancelable}} attribute initialized to "true", and with {{KeyFrameRequestEvent/rid}} set to |rid|.
693
+
1. If the event's `canceled flag` is true, abort these steps.
694
+
1. Run the [$generate key frame algorithm$] with a new promise, |transform|.`[[encoder]]` and |rid|.
0 commit comments