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
A {{RTCRtpScriptTransformer}} has the following private slots called `[[depacketizer]]`, `[[encoder]]`, `[[options]]`, `[[readable]]` and `[[writable]]`.
@@ -671,12 +684,25 @@ This allows algorithms to go from an {{RTCRtpScriptTransformer}} object to its {
671
684
The <dfn attribute for="RTCRtpScriptTransformer">options</dfn> getter steps are:
672
685
1. Return [=this=].`[[options]]`.
673
686
674
-
The <dfn attribute for="RTCRtpScriptTransformer">readable</dfn> getter steps are:
687
+
The <dfn attribute for="RTCRtpScriptSource">readable</dfn> getter steps are:
675
688
1. Return [=this=].`[[readable]]`.
676
689
677
-
The <dfn attribute for="RTCRtpScriptTransformer">writable</dfn> getter steps are:
690
+
The <dfn attribute for="RTCRtpScriptSink">writable</dfn> getter steps are:
678
691
1. Return [=this=].`[[writable]]`.
679
692
693
+
The <dfn attribute for="RTCRtpScriptSink">onbandwidthestimate</dfn> EventHandler has type bandwidthestimate.
694
+
695
+
The <dfn attribute for="RTCRtpScriptSink">onkeyframerequest</dfn> EventHandler has type keyframerequest.
696
+
697
+
## Events ##
698
+
699
+
The following events fire on an RTCRtpScriptTransform:
700
+
701
+
* bandwidthestimate of type {{BandwidthEstimateEvent}} - fired when the sink determines that the bandwidth estimate has changed significantly from what has been previously signalled. In the context of {{RTCRtpScriptTransform}}, if the event is not cancelled, the information will be passed to the source as if the bandwidthEstimate() function had been called.
702
+
703
+
* keyframerequest of type {{KeyFrameRequestEvent}} - fired when the sink determines that a key frame has been requested. In the context of {{RTCRtpScriptTransform, if the event is not cancelled, the information will be passed to the source as if the generateKeyFrame() function had been called. <!-- NOTE IN DRAFT: generateKeyFrame() and requestKeyFrame() should merge -->
704
+
705
+
680
706
## KeyFrame Algorithms ## {#KeyFrame-algorithms}
681
707
682
708
The <dfn abstract-op>generate key frame algorithm</dfn>, given |promise|, |encoder| and |rid|, is defined by running these steps:
0 commit comments