@@ -586,18 +586,34 @@ interface RTCTransformEvent : Event {
586
586
readonly attribute RTCRtpScriptTransformer transformer;
587
587
};
588
588
589
+ interface BandwidthInfo {
590
+ readonly attribute long bandwidth; // bits per second
591
+ readonly attribute long bufferDepth; // bytes that can be sent with no loss at sender
592
+ };
593
+
589
594
partial interface DedicatedWorkerGlobalScope {
590
595
attribute EventHandler onrtctransform;
591
596
};
592
597
593
- [Exposed=DedicatedWorker]
594
- interface RTCRtpScriptTransformer {
598
+ interface mixin RTCRtpScriptSource {
595
599
readonly attribute ReadableStream readable;
596
- readonly attribute WritableStream writable;
597
- readonly attribute any options;
598
600
Promise<unsigned long long> generateKeyFrame(optional DOMString rid);
599
601
Promise<undefined> sendKeyFrameRequest();
602
+ undefined bandwidthEstimate(BandwidthInfo info);
603
+ };
604
+
605
+ interface mixin RTCRtpScriptSink {
606
+ readonly attribute WritableStream writable;
607
+ attribute EventHandler onbandwidthestimate;
608
+ attribute EventHandler onkeyframerequest;
609
+ };
610
+
611
+ [Exposed=DedicatedWorker]
612
+ interface RTCRtpScriptTransformer {
613
+ readonly attribute any options;
600
614
};
615
+ RTCRtpScriptTransformer includes RTCRtpScriptSource;
616
+ RTCRtpScriptTransformer includes RTCRtpScriptSink;
601
617
602
618
[Exposed=Window]
603
619
interface RTCRtpScriptTransform {
0 commit comments