Skip to content

Commit

Permalink
Infer type from signalingState inside chained steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ivar committed Jul 31, 2019
1 parent 3bdf1ec commit ba236b5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions webrtc.html
Original file line number Diff line number Diff line change
Expand Up @@ -3070,28 +3070,28 @@ <h2>Methods</h2>
argument.</p>
</li>
<li>
<p>Let <var>type</var> be
<code><var>description</var>.type</code> if present, or
<code>"offer"</code> if not present and
<var>connection</var>'s <a>signaling state</a> is either
<code>"stable"</code>, <code>"have-local-offer"</code>, or
<code>"have-remote-pranswer"</code>; otherwise
<code>"answer"</code>.</p>
<p>Let <var>connection</var> be the
<code><a>RTCPeerConnection</a></code> object on which the
method was invoked.</p>
</li>
<li>
<p>Let <var>sdp</var> be
<code><var>description</var>.sdp</code>.</p>
</li>
<li>
<p>Let <var>connection</var> be the
<code><a>RTCPeerConnection</a></code> object on which the
method was invoked.</p>
</li>
<li>
<p>Return the result of <a href=
"#dfn-chain-an-operation">chaining</a> the following steps to
<var>connection</var>'s operations chain:</p>
<ol>
<li>
<p>Let <var>type</var> be
<code><var>description</var>.type</code> if present, or
<code>"offer"</code> if not present and
<var>connection</var>'s <a>signaling state</a> is either
<code>"stable"</code>, <code>"have-local-offer"</code>,
or <code>"have-remote-pranswer"</code>; otherwise
<code>"answer"</code>.</p>
</li>
<li data-tests="RTCPeerConnection-setLocalDescription-offer.html">
<p>If <var>type</var> is <code>"offer"</code>, and
<var>sdp</var> is not the empty string and not equal to
Expand Down

0 comments on commit ba236b5

Please sign in to comment.