Skip to content

Commit 8289c2e

Browse files
committed
Remove bandwidth material
1 parent ee1f348 commit 8289c2e

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

index.bs

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -586,12 +586,6 @@ interface RTCTransformEvent : Event {
586586
readonly attribute RTCRtpScriptTransformer transformer;
587587
};
588588

589-
interface BandwidthInfo {
590-
readonly attribute long allocatedBitrate; // bits per second
591-
readonly attribute long availableOutgoingBitrate;
592-
readonly attribute boolean writable;
593-
};
594-
595589
partial interface DedicatedWorkerGlobalScope {
596590
attribute EventHandler onrtctransform;
597591
};
@@ -600,20 +594,18 @@ interface mixin RTCRtpScriptSource {
600594
readonly attribute ReadableStream readable;
601595
Promise<unsigned long long> generateKeyFrame(optional DOMString rid);
602596
Promise<undefined> sendKeyFrameRequest();
603-
undefined sendBandwidthEstimate(BandwidthInfo info);
604597
};
605598

606599
interface mixin RTCRtpScriptSink {
607600
readonly attribute WritableStream writable;
608-
attribute BandwidthInfo bandwidthInfo;
609-
attribute EventHandler onbandwidthestimate;
610601
attribute EventHandler onkeyframerequest;
611602
};
612603

613604
[Exposed=DedicatedWorker]
614605
interface RTCRtpScriptTransformer {
615606
readonly attribute any options;
616607
};
608+
617609
RTCRtpScriptTransformer includes RTCRtpScriptSource;
618610
RTCRtpScriptTransformer includes RTCRtpScriptSink;
619611

@@ -669,9 +661,6 @@ The <dfn method for="RTCRtpScriptSource">sendKeyFrameRequest()</dfn> method step
669661
1. Run the [$send request key frame algorithm$] with |promise| and |this|.`[[depacketizer]]`.
670662
1. Return |promise|.
671663

672-
The <dfn method for="RTCRtpScriptSource">sendBandwidthEstimate()</dfn> method step are:
673-
1. Configure the upstream source with the new bandwidth information.
674-
675664
## Attributes ## {#RTCRtpScriptTransformer-attributes}
676665

677666
A {{RTCRtpScriptTransformer}} has the following private slots called `[[depacketizer]]`, `[[encoder]]`, `[[options]]`, `[[readable]]` and `[[writable]]`.
@@ -691,26 +680,12 @@ The <dfn attribute for="RTCRtpScriptSink">onbandwidthestimate</dfn> EventHandler
691680

692681
The <dfn attribute for="RTCRtpScriptSink">onkeyframerequest</dfn> EventHandler has type keyframerequest.
693682

694-
## Attributes of BandwidthInfo ## {#BandwidthEstimate-attributes}
695-
The <dfn attribute for="BandwidthEstimate">allocatedBitrate</dfn> attribute represents the bandwith that the downstream
696-
entity recommends to be allocated for media from this source. If this number is exceeded, the downstream entity
697-
can drop frames to stay within the allocated bandwidth limit.
698-
699-
The <dfn attribute for="BandwidthEstimate">availableOutgoingBitrate</dfn> attribute represents the overall bandwidth estimate
700-
of the downstream entity - for an {{RTCRtpSender}}, this is the same number as the {{RTCIceCandidatePairStats/availableOutgoingBitrate}} of the {{RTCIceCandidatePair}} object that is currently supporting the transport.
701-
702-
The <dfn attribute for="BandwidthEstimate">writable</dfn> attribute is true whenever it is possible to enqueue a
703-
frame for processing without it being immediately discarded. Note that delivery is not guaranteed under any circumstance.
704-
705683
## Events ## {#RTCRtpScriptTransformer-events}
706684

707685
The following events fire on an {{RTCRtpScriptTransformer}}:
708686

709-
* bandwidthestimate of type {{Event}} - fired when the sink determines that the bandwidth estimate has changed significantly from what has been previously signalled. Significant changes include a change to the "writable" attribute, a decrease of the "allocatedBitrate" attribute, or an increase of more than 10% of the "allocatedBitrate" attribute. In the context of {{RTCRtpScriptTransform}}, if the event is not cancelled, the information will be passed to the source as if the sendBandwidthEstimate() function had been called.
710-
711687
* 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 -->
712688

713-
714689
## KeyFrame Algorithms ## {#KeyFrame-algorithms}
715690

716691
The <dfn abstract-op>generate key frame algorithm</dfn>, given |promise|, |encoder| and |rid|, is defined by running these steps:

0 commit comments

Comments
 (0)