Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove RTCRtpTransceiverDirection enum from MDN #10577

Merged
merged 1 commit into from
Nov 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8431,6 +8431,7 @@
/en-US/docs/Web/API/RTCRtpSender/getCapabilities() /en-US/docs/Web/API/RTCRtpSender/getCapabilities
/en-US/docs/Web/API/RTCRtpSynchronizationSource /en-US/docs/Web/API/RTCRtpReceiver/getSynchronizationSources
/en-US/docs/Web/API/RTCRtpSynchronizationSource/voiceActivityFlag /en-US/docs/Web/API/RTCRtpReceiver/getSynchronizationSources
/en-US/docs/Web/API/RTCRtpTransceiverDirection /en-US/docs/Web/API/RTCRtpTransceiver/direction
/en-US/docs/Web/API/RTCRtpTransceiverInit /en-US/docs/Web/API/RTCPeerConnection/addTransceiver
/en-US/docs/Web/API/RTCSctpTransportState /en-US/docs/Web/API/RTCSctpTransport/state
/en-US/docs/Web/API/RTCSdpType /en-US/docs/Web/API/RTCSessionDescription/type
Expand Down
7 changes: 0 additions & 7 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -71617,13 +71617,6 @@
"fscholz"
]
},
"Web/API/RTCRtpTransceiverDirection": {
"modified": "2020-10-15T22:01:44.116Z",
"contributors": [
"fscholz",
"Sheppy"
]
},
"Web/API/RTCSctpTransport": {
"modified": "2020-10-15T21:46:42.744Z",
"contributors": [
Expand Down
50 changes: 45 additions & 5 deletions files/en-us/web/api/rtcrtptransceiver/currentdirection/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ The read-only {{domxref("RTCRtpTransceiver")}} property
**`currentDirection`** is a string which indicates the current
directionality of the transceiver.

Its value is one of the strings defined by
the {{domxref("RTCRtpTransceiverDirection")}} enumeration.
Its value is one of the strings defined in the table below.

You can examine and set the transceiver's preferred directionality using
{{domxref("RTCRtpTransceiver.direction", "direction")}} property.
Expand All @@ -34,9 +33,50 @@ var direction = RTCRtpTransceiver.currentDirection

### Value

A {{domxref("DOMString")}} whose value is one of the strings which are a member of the
`RTCRtpTransceiverDirection` enumerated type.
{{page("/en-US/docs/Web/API/RTCRtpTransceiverDirection", "Values")}}
A {{domxref("DOMString")}} whose value is one of the strings which are a member of the following values.

<table class="standard-table">
<thead>
<tr>
<th scope="row">Value</th>
<th scope="col"><code>RTCRtpSender</code> behavior</th>
<th scope="col"><code>RTCRtpReceiver</code> behavior</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row"><code>"sendrecv"</code></th>
<td>
Offers to send {{Glossary("RTP")}} data, and will do so if the
other peer accepts the connection and at least one of the sender's
encodings is active.
</td>
<td>
Offers to receive RTP data, and does so if the other peer accepts.
</td>
</tr>
<tr>
<th scope="row"><code>"sendonly"</code></th>
<td>
Offers to send RTP data, and will do so if the other peer accepts the
connection and at least one of the sender's encodings is active.
</td>
<td>Does <em>not</em> offer to receive RTP data and will not do so.</td>
</tr>
<tr>
<th scope="row"><code>"recvonly"</code></th>
<td>Does <em>not</em> offer to send RTP data, and will not do so.</td>
<td>
Offers to receive RTP data, and will do so if the other peer offers.
</td>
</tr>
<tr>
<th scope="row"><code>"inactive"</code></th>
<td>Does <em>not</em> offer to send RTP data, and will not do so.</td>
<td>Does <em>not</em> offer to receive RTP data and will not do so.</td>
</tr>
</tbody>
</table>

## Specifications

Expand Down
51 changes: 45 additions & 6 deletions files/en-us/web/api/rtcrtptransceiver/direction/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ The {{domxref("RTCRtpTransceiver")}} property
**`direction`** is a string which indicates the transceiver's
preferred directionality.

Its value must be one of the strings defined by the
{{domxref("RTCRtpTransceiverDirection")}} enumeration.
Its value must be one of the strings defined in the table below.

The transceiver's _current_ direction is indicated by the
{{domxref("RTCRtpTransceiver.currentDirection", "currentDirection")}} property.
Expand All @@ -34,10 +33,50 @@ var direction = RTCRtpTransceiver.direction

### Value

A {{domxref("DOMString")}} whose value is one of the strings which are a member of the
`RTCRtpTransceiverDirection` enumerated type, indicating the transceiver's
preferred direction. {{page("/en-US/docs/Web/API/RTCRtpTransceiverDirection",
"Values")}}
A {{domxref("DOMString")}} whose value is one of the strings which are a member of the following values, indicating the transceiver's preferred direction.

<table class="standard-table">
<thead>
<tr>
<th scope="row">Value</th>
<th scope="col"><code>RTCRtpSender</code> behavior</th>
<th scope="col"><code>RTCRtpReceiver</code> behavior</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row"><code>"sendrecv"</code></th>
<td>
Offers to send {{Glossary("RTP")}} data, and will do so if the
other peer accepts the connection and at least one of the sender's
encodings is active.
</td>
<td>
Offers to receive RTP data, and does so if the other peer accepts.
</td>
</tr>
<tr>
<th scope="row"><code>"sendonly"</code></th>
<td>
Offers to send RTP data, and will do so if the other peer accepts the
connection and at least one of the sender's encodings is active.
</td>
<td>Does <em>not</em> offer to receive RTP data and will not do so.</td>
</tr>
<tr>
<th scope="row"><code>"recvonly"</code></th>
<td>Does <em>not</em> offer to send RTP data, and will not do so.</td>
<td>
Offers to receive RTP data, and will do so if the other peer offers.
</td>
</tr>
<tr>
<th scope="row"><code>"inactive"</code></th>
<td>Does <em>not</em> offer to send RTP data, and will not do so.</td>
<td>Does <em>not</em> offer to receive RTP data and will not do so.</td>
</tr>
</tbody>
</table>

### Exceptions

Expand Down
4 changes: 2 additions & 2 deletions files/en-us/web/api/rtcrtptransceiver/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ A transceiver is uniquely identified using its {{domxref("RTCRtpTransceiver.mid"
## Properties

- {{domxref("RTCRtpTransceiver.currentDirection", "currentDirection")}} {{ReadOnlyInline}}
- : A read-only string from the enum {{domxref("RTCRtpTransceiverDirection")}} which indicates the transceiver's current directionality, or `null` if the transceiver is stopped or has never participated in an exchange of offers and answers. To change the transceiver's directionality, set the value of the {{domxref("RTCRtpTransceiver.direction", "direction")}} property.
- : A read-only string which indicates the transceiver's current directionality, or `null` if the transceiver is stopped or has never participated in an exchange of offers and answers. To change the transceiver's directionality, set the value of the {{domxref("RTCRtpTransceiver.direction", "direction")}} property.
- {{domxref("RTCRtpTransceiver.direction", "direction")}}
- : A string from the enum {{domxref("RTCRtpTransceiverDirection")}} which is used to set the transceiver's desired direction.
- : A string which is used to set the transceiver's desired direction.
- {{domxref("RTCRtpTransceiver.mid", "mid")}} {{ReadOnlyInline}}
- : The media ID of the m-line associated with this transceiver. This association is established, when possible, whenever either a local or remote description is applied. This field is `null` if neither a local or remote description has been applied, or if its associated m-line is rejected by either a remote offer or any answer.
- {{domxref("RTCRtpTransceiver.receiver", "receiver")}} {{ReadOnlyInline}}
Expand Down
90 changes: 0 additions & 90 deletions files/en-us/web/api/rtcrtptransceiverdirection/index.md

This file was deleted.