diff --git a/webrtc.html b/webrtc.html index a6f82b4d6..9515813a2 100644 --- a/webrtc.html +++ b/webrtc.html @@ -254,7 +254,7 @@
enum RTCIceCredentialType { - "password", + "password" };
have-local-offer | -A local description, of type "offer" , has been successfully
+ | A local description, of type {{RTCSdpType/"offer"}}, has been successfully applied. |
have-remote-offer | -A remote description, of type "offer" , has been
+ | A remote description, of type {{RTCSdpType/"offer"}}, has been successfully applied. |
have-local-pranswer | -A remote description of type "offer" has been successfully
- applied and a local description of type "pranswer" has been
+ | A remote description of type {{RTCSdpType/"offer"}} has been successfully + applied and a local description of type {{RTCSdpType/"pranswer"}} has been successfully applied. |
have-remote-pranswer | -A local description of type "offer" has been successfully
- applied and a remote description of type "pranswer" has been
+ | A local description of type {{RTCSdpType/"offer"}} has been successfully + applied and a remote description of type {{RTCSdpType/"pranswer"}} has been successfully applied. |
new | Any of the {{RTCIceTransport}}s are in the
- "new" gathering state and none of the transports are
- in the "gathering" state, or there are no
+ {{RTCIceGathererState/"new"}} gathering state and none of the transports are
+ in the {{RTCIceGathererState/"gathering"}} state, or there are no
transports. |
|
gathering | Any of the {{RTCIceTransport}}s are in the
- "gathering" state. |
+ {{RTCIceGathererState/"gathering"}} state.
|
complete | At least one {{RTCIceTransport}} exists,
and all {{RTCIceTransport}}s are in the
- "completed" gathering state. |
+ {{RTCIceGathererState/"complete"}} gathering state.
"failed"
state."disconnected"
state."new"
or "closed"
state,
+ {{RTCIceTransportState/"new"}} or {{RTCIceTransportState/"closed"}} state,
or there are no transports."new"
or "checking"
state."completed"
or "closed"
state."connected"
, "completed"
or
- "closed"
state.If the value of configuration.{{RTCConfiguration/iceTransportPolicy}}
is
- undefined
, set it to "all"
.
undefined
, set it to {{RTCIceTransportPolicy/"all"}}.
If the value of configuration.{{RTCConfiguration/bundlePolicy}}
is
- undefined
, set it to "balanced"
.
undefined
, set it to {{RTCBundlePolicy/"balanced"}}.
If the value of configuration.{{RTCConfiguration/rtcpMuxPolicy}}
is
- undefined
, set it to "require"
.
undefined
, set it to {{RTCRtcpMuxPolicy/"require"}}.
Let connection have a [[\Configuration]] @@ -928,19 +928,19 @@
Set connection's [= signaling state =] to
- "stable"
.
Set connection's [= ICE connection state =] to
- "new"
.
Set connection's [= ICE gathering state =] to
- "new"
.
Set connection's [= connection state =] to
- "new"
.
Let connection have a @@ -1116,7 +1116,7 @@
If newState is "completed"
,
+
If newState is {{RTCIceGatheringState/"complete"}}, [= fire an event =] named {{icecandidate}} using the {{RTCPeerConnectionIceEvent}} interface with the candidate attribute set to @@ -1149,9 +1149,9 @@
If description.type
is
- "rollback"
and connection's [= signaling state =] is either
- "stable"
, "have-local-pranswer"
, or
- "have-remote-pranswer"
, then [= reject =] p
+ {{RTCSdpType/"rollback"}} and connection's [= signaling state =] is either
+ {{RTCSignalingState/"stable"}}, {{RTCSignalingState/"have-local-pranswer"}}, or
+ {{RTCSignalingState/"have-remote-pranswer"}}, then [= reject =] p
with a newly [= exception/create | created =]
{{InvalidStateError}} and abort these steps.
true
, then abort these steps.
If description is of type "offer"
+
If description is of type {{RTCSdpType/"offer"}}
and the [= signaling state =] of connection is
- "stable"
then for each transceiver
+ {{RTCSignalingState/"stable"}} then for each transceiver
in connection's [= set
of transceivers =], run the following steps:
If description is of type "offer"
, set
+
If description is of type {{RTCSdpType/"offer"}}, set
connection.[[\PendingLocalDescription]]
to a new {{RTCSessionDescription}} object
constructed from description, set
- connection's [= signaling state =] to "have-local-offer"
,
+ connection's [= signaling state =] to {{RTCSignalingState/"have-local-offer"}},
and [= release early candidates =].
If description is of type "answer"
, then
+
If description is of type {{RTCSdpType/"answer"}}, then this completes an offer answer negotiation. Set connection.[[\CurrentLocalDescription]] to a new {{RTCSessionDescription}} object @@ -1287,7 +1287,7 @@
""
, set connection's
- [= signaling state =] to "stable"
, and
+ [= signaling state =] to {{RTCSignalingState/"stable"}}, and
[= release early candidates =]. Finally, if none of the
ICE credentials in
connection.[[\LocalIceCredentialsToReplace]] are
@@ -1297,11 +1297,11 @@ If description is of type "pranswer"
,
+
If description is of type {{RTCSdpType/"pranswer"}},
then set connection.[[\PendingLocalDescription]]
to a new {{RTCSessionDescription}} object
constructed from description, set connection's
- [= signaling state =] to "have-local-pranswer"
,
+ [= signaling state =] to {{RTCSignalingState/"have-local-pranswer"}},
and [= release early candidates =].
If description is of type "offer"
, set
+
If description is of type {{RTCSdpType/"offer"}}, set
connection.[[\PendingRemoteDescription]]
attribute to a new {{RTCSessionDescription}}
object constructed from description, and set connection's
- [= signaling state =] to "have-remote-offer"
.
If description is of type "answer"
, then
+
If description is of type {{RTCSdpType/"answer"}}, then this completes an offer answer negotiation. Set connection.[[\CurrentRemoteDescription]] to a new {{RTCSessionDescription}} object @@ -1334,7 +1334,7 @@
""
, and set connection's
- [= signaling state =] to "stable"
.
+ [= signaling state =] to {{RTCSignalingState/"stable"}}.
Finally, if none of the ICE credentials in
connection.[[\LocalIceCredentialsToReplace]]
are present in the newly set
@@ -1344,16 +1344,16 @@ If description is of type "pranswer"
,
+
If description is of type {{RTCSdpType/"pranswer"}},
then set connection.[[\PendingRemoteDescription]]
to a new {{RTCSessionDescription}} object
constructed from description and set connection's
- [= signaling state =] to "have-remote-pranswer"
.
If description is of type "answer"
, and it
+
If description is of type {{RTCSdpType/"answer"}}, and it initiates the closure of an existing SCTP association, as defined in [[!SCTP-SDP]], Sections 10.3 and 10.4, set the value of connection.[[\SctpTransport]] to @@ -1365,15 +1365,15 @@
If description is of type "answer"
or
- "pranswer"
, then run the following steps:
If description is of type {{RTCSdpType/"answer"}} or + {{RTCSdpType/"pranswer"}}, then run the following steps:
If description initiates the
establishment of a new SCTP association, as defined in
[[!SCTP-SDP]], Sections 10.3 and 10.4, [= create an
RTCSctpTransport =] with an initial state of
- "connecting"
and assign the result to the
+ {{RTCSctpTransportState/"connecting"}} and assign the result to the
[[\SctpTransport]] slot. Otherwise, if an SCTP
association is established,
but the "max-message-size" SDP attribute is updated,
@@ -1393,7 +1393,7 @@
"closed"
, and add channnel
+ {{RTCDataChannelState/"closed"}}, and add channnel
to errorList.
If description is not of type "rollback"
, then
+
If description is not of type {{RTCSdpType/"rollback"}}, then run the following steps:
If direction is "sendrecv"
or
- "recvonly"
,
+
If direction is {{RTCRtpTransceiverDirection/"sendrecv"}} or
+ {{RTCRtpTransceiverDirection/"recvonly"}},
set transceiver.[[\Receptive]]
to true
, otherwise set it to false
.
If the direction is
- "sendonly"
or "inactive"
,
+ {{RTCRtpTransceiverDirection/"sendonly"}} or {{RTCRtpTransceiverDirection/"inactive"}},
the receiver is not prepared to receive
anything, and the list will be empty.
If description is of type
- "answer"
or "pranswer"
,
+ {{RTCSdpType/"answer"}} or {{RTCSdpType/"pranswer"}},
then run the following steps:
If direction is
- "sendonly"
or "inactive"
,
+ {{RTCRtpTransceiverDirection/"sendonly"}} or {{RTCRtpTransceiverDirection/"inactive"}},
and transceiver.[[\FiredDirection]] is either
- "sendrecv"
or "recvonly"
,
+ {{RTCRtpTransceiverDirection/"sendrecv"}} or {{RTCRtpTransceiverDirection/"recvonly"}},
then run the following steps:
If the description is of type "offer"
+
If the description is of type {{RTCSdpType/"offer"}} and contains a request to receive simulcast, use the order of the rid values specified in the simulcast attribute to create an {{RTCRtpEncodingParameters}} dictionary for @@ -1597,7 +1597,7 @@
[= Create an RTCRtpTransceiver =] with
sender, receiver and
an {{RTCRtpTransceiverDirection}}
- value of "recvonly"
, and let
+ value of {{RTCRtpTransceiverDirection/"recvonly"}}, and let
transceiver be the result.
If description is of type "answer"
- or "pranswer"
, and transceiver.
+
If description is of type {{RTCSdpType/"answer"}}
+ or {{RTCSdpType/"pranswer"}}, and transceiver.
[[\Sender]].[[\SendEncodings]] .length is
greater than 1
, then run the following steps:
"inactive"
.
+ set direction to {{RTCRtpTransceiverDirection/"inactive"}}.
If direction is "sendrecv"
- or "recvonly"
, let msids be a
+
If direction is {{RTCRtpTransceiverDirection/"sendrecv"}} + or {{RTCRtpTransceiverDirection/"recvonly"}}, let msids be a list of the MSIDs that the media description indicates transceiver.[[\Receiver]].[[\ReceiverTrack]] is to be associated with. Otherwise, let @@ -1679,7 +1679,7 @@
If description is of type
- "answer"
or "pranswer"
, then run
+ {{RTCSdpType/"answer"}} or {{RTCSdpType/"pranswer"}}, then run
the following steps:
Otherwise, (if description is of type "rollback"
)
+
Otherwise, (if description is of type {{RTCSdpType/"rollback"}}) run the following steps:
If the signaling state of connection
- is "have-remote-offer"
, run the following
+ is {{RTCSignalingState/"have-remote-offer"}}, run the following
sub steps:
Set connection.[[\PendingLocalDescription]]
and connection.[[\PendingRemoteDescription]]
to null
, and set connection's
- [= signaling state =] to "stable"
.
If description is of type "answer"
, then run
+
If description is of type {{RTCSdpType/"answer"}}, then run the following steps:
If connection's [= signaling state =] is now
- "stable"
, [= update the negotiation-needed
+ {{RTCSignalingState/"stable"}}, [= update the negotiation-needed
flag =]. If connection.[[\NegotiationNeeded]]
was true
both before and after this update,
[= Chain =] a step to @@ -2046,7 +2046,7 @@
If scheme name is turn
or
turns
, and
server.credentialType
is
- "password"
, and
+ {{RTCIceCredentialType/"password"}}, and
server.credential
is not a
DOMString, then
[= exception/throw =] an {{InvalidAccessError}}.
If connection's [= signaling state =] is
- neither "stable"
nor
- "have-local-offer"
, return a promise
+ neither {{RTCSignalingState/"stable"}} nor
+ {{RTCSignalingState/"have-local-offer"}}, return a promise
[= rejected =] with a newly [= exception/create | created =]
{{InvalidStateError}}.
If the {{RTCRtpTransceiver/direction}} is
- "sendrecv"
, exclude any codecs not
+ {{RTCRtpTransceiverDirection/"sendrecv"}}, exclude any codecs not
included in the intersection of
RTCRtpSender.getCapabilities(kind).codecs
and RTCRtpReceiver.getCapabilities(kind).codecs
.
If the {{RTCRtpTransceiver/direction}} is
- "sendonly"
, exclude any codecs not
+ {{RTCRtpTransceiverDirection/"sendonly"}}, exclude any codecs not
included in
RTCRtpSender.getCapabilities(kind).codecs
.
If the {{RTCRtpTransceiver/direction}} is
- "recvonly"
, exclude any codecs not
+ {{RTCRtpTransceiverDirection/"recvonly"}}, exclude any codecs not
included in
RTCRtpReceiver.getCapabilities(kind).codecs
.
Let offer be a newly created
{{RTCSessionDescriptionInit}} dictionary
with its type
member initialized to the string
- "offer"
and its sdp
member
+ {{RTCSdpType/"offer"}} and its sdp
member
initialized to sdpString.
Set the [[\LastCreatedOffer]] internal slot to @@ -2581,7 +2581,7 @@
An answer can be marked as provisional, as described in
[[!JSEP]],
by setting the {{RTCSessionDescription/type}} to
- "pranswer"
.
When the method is called, the user agent MUST run the following steps:
If connection's [= signaling state =]
- is neither "have-remote-offer"
nor
- "have-local-pranswer"
, return a promise
+ is neither {{RTCSignalingState/"have-remote-offer"}} nor
+ {{RTCSignalingState/"have-local-pranswer"}}, return a promise
[= rejected =] with a newly [= exception/create | created =]
{{InvalidStateError}}.
createAnswer
was called when an
{{RTCRtpTransceiver}}'s direction was
- "recvonly"
, but while performing the
+ {{RTCRtpTransceiverDirection/"recvonly"}}, but while performing the
[= in-parallel steps to create an answer =], the
- direction was changed to "sendrecv"
,
+ direction was changed to {{RTCRtpTransceiverDirection/"sendrecv"}},
requiring additional inspection of video encoding
resources.
If the {{RTCRtpTransceiver/direction}} is
- "sendrecv"
, exclude any codecs not
+ {{RTCRtpTransceiverDirection/"sendrecv"}}, exclude any codecs not
included in the intersection of
RTCRtpSender.getCapabilities(kind).codecs
and RTCRtpReceiver.getCapabilities(kind).codecs
.
If the {{RTCRtpTransceiver/direction}} is
- "sendonly"
, exclude any codecs not
+ {{RTCRtpTransceiverDirection/"sendonly"}}, exclude any codecs not
included in
RTCRtpSender.getCapabilities(kind).codecs
.
If the {{RTCRtpTransceiver/direction}} is
- "recvonly"
, exclude any codecs not
+ {{RTCRtpTransceiverDirection/"recvonly"}}, exclude any codecs not
included in
RTCRtpReceiver.getCapabilities(kind).codecs
.
Let answer be a newly created
{{RTCSessionDescriptionInit}} dictionary
with its type
member initialized to the string
- "answer"
and its sdp
member
+ {{RTCSdpType/"answer"}} and its sdp
member
initialized to sdpString.
Set the [[\LastCreatedAnswer]] internal slot to @@ -2792,14 +2792,14 @@
Let type be
description.type
if present, or
- "offer"
if not present and
+ {{RTCSdpType/"offer"}} if not present and
connection's [= signaling state =] is either
- "stable"
, "have-local-offer"
,
- or "have-remote-pranswer"
; otherwise
- "answer"
.
If type is "offer"
, and
+
If type is {{RTCSdpType/"offer"}}, and sdp is not the empty string and not equal to connection.[[\LastCreatedOffer]], then return a promise [= rejected =] with a newly @@ -2808,8 +2808,8 @@
If type is "answer"
or
- "pranswer"
, and sdp is not the
+
If type is {{RTCSdpType/"answer"}} or + {{RTCSdpType/"pranswer"}}, and sdp is not the empty string and not equal to connection.[[\LastCreatedAnswer]], then return a promise [= rejected =] with a newly [= exception/create | created =] @@ -2818,7 +2818,7 @@
If sdp is the empty string, and
- type is "offer"
, then run the
+ type is {{RTCSdpType/"offer"}}, then run the
following sub steps:
If sdp is the empty string, and
- type is "answer"
or
- "pranswer"
, then run the following sub
+ type is {{RTCSdpType/"answer"}} or
+ {{RTCSdpType/"pranswer"}}, then run the following sub
steps:
If the description's {{RTCSessionDescriptionInit/type}} is
- "offer"
and is invalid for the
+ {{RTCSdpType/"offer"}} and is invalid for the
current [= signaling state =] of connection
as described in [[!JSEP]],
@@ -3194,7 +3194,7 @@
Set connection's [= signaling state =] to
- "closed"
.
Let transceivers be the result of executing the @@ -3215,7 +3215,7 @@
Set the [[\ReadyState]] slot of each of
connection's {{RTCDataChannel}}s
- to "{{RTCDataChannelState/closed}}"
If the connection.[[\SctpTransport]]
is not null
, tear down the underlying SCTP
association by sending an SCTP ABORT chunk and set the
- [[\SctpTransportState]] to "{{RTCSctpTransportState/closed}}"
.
Set the [[\DtlsTransportState]] slot of each of
connection's {{RTCDtlsTransport}}s
- to "{{RTCDtlsTransportState/closed}}"
.
Destroy connection's [= ICE Agent =], @@ -3240,16 +3240,16 @@
Set the [[\IceTransportState]] slot of each of
connection's {{RTCIceTransport}}s
- to "{{RTCIceTransportState/closed}}"
.
Set connection's [= ICE connection state =] to
- "closed"
. This does not fire any event.
+ {{RTCIceConnectionState/"closed"}}. This does not fire any event.
Set connection's [= connection state =] to
- "closed"
.
An RTCSdpType
of rollback
+
An RTCSdpType
of {{RTCSdpType/"rollback"}}
indicates that a description MUST be treated as canceling the
current SDP negotiation and moving the SDP [[!SDP]] offer
back to what it was in the previous stable state. Note
@@ -3784,7 +3784,7 @@
type
is "rollback"
, this member is unused.
+ type
is {{RTCSdpType/"rollback"}}, this member is unused.
If connection's [= signaling state =] is not
- "stable"
, abort these steps.
The negotiation-needed flag will be updated once the state transitions to "stable", as part of the steps @@ -3934,7 +3934,7 @@
If transceiver.[[\Direction]] is
- "sendrecv"
or "sendonly"
,
+ {{RTCRtpTransceiverDirection/"sendrecv"}} or {{RTCRtpTransceiverDirection/"sendonly"}},
and the [= associated =] m= section in description
either doesn't contain a single "a=msid" line, or the number
of MSIDs from the "a=msid" lines in this m= section,
@@ -3944,7 +3944,7 @@
If description is of type "offer"
,
+
If description is of type {{RTCSdpType/"offer"}}, and the direction of the [= associated =] m= section in neither connection.[[\CurrentLocalDescription]] nor @@ -3957,7 +3957,7 @@
If description is of type "answer"
,
+
If description is of type {{RTCSdpType/"answer"}}, and the direction of the [= associated =] m= section in the description does not match transceiver.[[\Direction]] @@ -4435,14 +4435,14 @@
All {{RTCIceTransport}}s have finished
gathering candidates, and the {{RTCPeerConnection}}'s
{{RTCIceGatheringState}} has transitioned to
- "{{RTCIceGatheringState/complete}}"
.
+ {{RTCIceGatheringState/"complete"}}.
This is indicated by the
{{RTCPeerConnectionIceEvent/candidate}}
member of the event being set to null
. This only
exists for backwards compatibility, and this event does not need
to be signaled to the remote peer. It's equivalent to an
"{{icegatheringstatechange}}"
event with the
- "{{RTCIceGatheringState/complete}}"
+ {{RTCIceGatheringState/"complete"}}
state.
"sendrecv"
An application can reject incoming media descriptions by setting
- the transceiver's direction to either "inactive"
to turn
- off both directions temporarily, or to "sendonly"
to reject
+ the transceiver's direction to either {{RTCRtpTransceiverDirection/"inactive"}} to turn
+ off both directions temporarily, or to {{RTCRtpTransceiverDirection/"sendonly"}} to reject
only the incoming side. To permanently reject an m-line in a manner that
makes it available for reuse, the application would need to call
RTCRtpTransceiver.{{RTCRtpTransceiver/stop}}()
@@ -5637,23 +5637,23 @@
If direction is "sendrecv"
or
- "recvonly"
and transceiver.[[\FiredDirection]]
- is neither "sendrecv"
nor "recvonly"
,
+
If direction is {{RTCRtpTransceiverDirection/"sendrecv"}} or + {{RTCRtpTransceiverDirection/"recvonly"}} and transceiver.[[\FiredDirection]] + is neither {{RTCRtpTransceiverDirection/"sendrecv"}} nor {{RTCRtpTransceiverDirection/"recvonly"}}, or the previous step increased the length of addList, process the addition of a remote track with transceiver and trackEventInits.
If direction is "sendonly"
or
- "inactive"
, set transceiver.[[\Receptive]]
+
If direction is {{RTCRtpTransceiverDirection/"sendonly"}} or
+ {{RTCRtpTransceiverDirection/"inactive"}}, set transceiver.[[\Receptive]]
to false
.
If direction is "sendonly"
or
- "inactive"
, and
+
If direction is {{RTCRtpTransceiverDirection/"sendonly"}} or
+ {{RTCRtpTransceiverDirection/"inactive"}}, and
transceiver.[[\FiredDirection]]
- is either "sendrecv"
or "recvonly"
,
+ is either {{RTCRtpTransceiverDirection/"sendrecv"}} or {{RTCRtpTransceiverDirection/"recvonly"}},
process the removal of a remote track for
the media description, with transceiver
and muteTracks.
Let sending be true
if the
transceiver.[[\CurrentDirection]]
- is "sendrecv"
or "sendonly"
,
+ is {{RTCRtpTransceiverDirection/"sendrecv"}} or {{RTCRtpTransceiverDirection/"sendonly"}},
and false
otherwise.
If transceiver.[[\Stopping]] is
- true
, return "stopped"
.
true
, return {{RTCRtpTransceiverDirection/"stopped"}}.
Otherwise, return the value of the [[\Direction]] @@ -7263,7 +7263,7 @@
If newDirection is equal to
- "stopped"
, [= exception/throw =] a {{TypeError}}.
+ {{RTCRtpTransceiverDirection/"stopped"}}, [= exception/throw =] a {{TypeError}}.
null
. If the transceiver is
- {{stopped}}, the value is "stopped"
.
+ {{stopped}}, the value is {{RTCRtpTransceiverDirection/"stopped"}}.
On getting, the user agent MUST run the following steps:
If transceiver.[[\Stopped]] is
- true
, return "stopped"
.
true
, return {{RTCRtpTransceiverDirection/"stopped"}}.
Otherwise, return the value of the @@ -8306,8 +8306,8 @@
Returns the selected candidate pair on which packets are sent. This
method MUST return the value of the [[\SelectedCandidatePair]]
- slot. When {{RTCIceTransport}}.state
is "new"
or
- "closed"
getSelectedCandidatePair
returns
+ slot. When {{RTCIceTransport}}.state
is {{RTCIceTransportState/"new"}} or
+ {{RTCIceTransportState/"closed"}} getSelectedCandidatePair
returns
null
.
An ICE restart causes candidate gathering and connectity checks to
- begin anew, causing a transition to connected
if begun in the
- completed
state. If begun in the transient
- disconnected
state, it causes a transition to
- checking
, effectively forgetting that connectivity was
+ begin anew, causing a transition to {{RTCIceTransportState/"connected"}} if begun in the
+ {{RTCIceTransportState/"completed"}} state. If begun in the transient
+ {{RTCIceTransportState/"disconnected"}} state, it causes a transition to
+ {{RTCIceTransportState/"checking"}}, effectively forgetting that connectivity was
previously lost.
The failed
and completed
states require an
+
The {{RTCIceTransportState/"failed"}} and {{RTCIceTransportState/"completed"}} states require an
indication that there are no additional remote candidates. This can be
indicated by calling {{RTCPeerConnection/addIceCandidate}} with
- a candidate value whose candidate
property is set
+ a candidate value whose {{RTCIceCandidate/candidate}} property is set
to an empty string or by {{RTCPeerConnection/canTrickleIceCandidates}} being set to
false
.
Some example state transitions are:
@@ -9150,7 +9150,7 @@When the negotiation of an association is completed, a task is
queued to update the [[\SctpTransportState]] slot to
- "connected"
.
A task is queued to update the [[\SctpTransportState]]
- slot to "closed"
when:
+ slot to {{RTCSctpTransportState/"closed"}} when:
Let channel have a [[\ReadyState]] internal
- slot initialized to "connecting"
.
Let channel have a [[\BufferedAmount]] @@ -9288,12 +9288,12 @@
If channel.[[\ReadyState]] is "closing"
or
- "closed"
, abort these steps.
If channel.[[\ReadyState]] is {{RTCDataChannelState/"closing"}} or + {{RTCDataChannelState/"closed"}}, abort these steps.
Set channel.[[\ReadyState]] to
- "open"
.
[= Fire an event =] named {{open}} at @@ -9339,7 +9339,7 @@
Set channel.[[\ReadyState]] to
- "open"
(but do not fire the {{open}}
+ {{RTCDataChannelState/"open"}} (but do not fire the {{open}}
event, yet).
Unless the procedure was initiated by the channel's
{{RTCDataChannel/close}} method, set
channel.[[\ReadyState]] to
- "closing"
.
Run the following steps in parallel:
@@ -9414,7 +9414,7 @@Set channel.[[\ReadyState]] to
- "closed"
.
If the [= underlying data transport | transport =] was closed @@ -9449,7 +9449,7 @@
Set channel.[[\ReadyState]] to
- "closed"
.
[= Fire an event =] named {{RTCDataChannel/error}} using the @@ -9483,7 +9483,7 @@
If channel.[[\ReadyState]] is not
- "open"
, abort these steps and discard rawData.
+ {{RTCDataChannelState/"open"}}, abort these steps and discard rawData.
"open"
; however, the
+ [[\ReadyState]] slot is {{RTCDataChannelState/"open"}}; however, the
slot does not reset to zero once the channel closes. When the
[= underlying data transport =] sends data from its queue, the
user agent MUST queue a task that reduces
@@ -9740,12 +9740,12 @@ If channel.[[\ReadyState]] is
- "closing"
or "closed"
, then abort these
+ {{RTCDataChannelState/"closing"}} or {{RTCDataChannelState/"closed"}}, then abort these
steps.
Set channel.[[\ReadyState]] to
- "closing"
.
If the [= closing procedure =] has not @@ -9791,7 +9791,7 @@
If channel.[[\ReadyState]] is not
- "open"
, [= exception/throw =] an
+ {{RTCDataChannelState/"open"}}, [= exception/throw =] an
{{InvalidStateError}}.
[[\ReadyState]] slot is
- "connecting"
and at least one event listener is registered
+ {{RTCDataChannelState/"connecting"}} and at least one event listener is registered
for open
events, message
events,
error
events, or close
events.
[[\ReadyState]] slot is
- "open"
and at least one event listener is registered for
+ {{RTCDataChannelState/"open"}} and at least one event listener is registered for
message
events, error
events, or
close
events.
[[\ReadyState]] slot is
- "closing"
and at least one event listener is registered
+ {{RTCDataChannelState/"closing"}} and at least one event listener is registered
for error
events, or close
events.
"connected"
+ false
.null
return false
."sendrecv"
- nor "sendonly"
return false
.false
.[0].active
is
false
return false
."audio/telephone-event"
has been
@@ -11336,7 +11336,7 @@ "stable"
state). The rest of the
+ coming in outside of {{RTCSignalingState/"stable"}} state). The rest of the
application may use any and all modification methods and attributes,
without worrying about signaling state races.
@@ -11493,21 +11493,21 @@ If errorDetail
is "sdp-syntax-error"
+
If errorDetail
is {{RTCErrorDetailType/"sdp-syntax-error"}}
this is the line number where the error was detected (the first
line has line number 1).
If errorDetail
is "sctp-failure"
this
+
If errorDetail
is {{RTCErrorDetailType/"sctp-failure"}} this
is the SCTP cause code of the failed SCTP negotiation.
If errorDetail
is "dtls-failure"
and
+
If errorDetail
is {{RTCErrorDetailType/"dtls-failure"}} and
a fatal DTLS alert was received, this is the value of the DTLS
alert received.
If errorDetail
is "dtls-failure"
and
+
If errorDetail
is {{RTCErrorDetailType/"dtls-failure"}} and
a fatal DTLS alert was sent, this is the value of the DTLS alert
sent.