Skip to content

Commit

Permalink
Attach simulcast offer sendEncodings to suitable (addTrack) transceiver.
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ivar committed Apr 1, 2019
1 parent e38ba0c commit d9ee35d
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions webrtc.html
Expand Up @@ -1750,21 +1750,27 @@ <h4>Set the RTCSessionDescription</h4>
object, <var>transceiver</var>, to represent the <a>media
description</a>.</p>
</li>
<li>
<p>If the <var>description</var> is of type <code>"offer"</code>
and contains a request to receive simulcast, use the order
of the rid values specified in the simulcast attribute to create
an <code><a>RTCRtpEncodingParameters</a></code> dictionary for
each of the simulcast layers, populating the <code>rid</code> member
according to the corresponding rid value, and let <var>sendEncodings</var>
be the list containing the created dictionaries. Otherwise,
let <var>sendEncodings</var> be an empty list.</p>
</li>
<li>
<p>If a suitable transceiver is found (<var>transceiver</var>
is set) and <var>sendEncodings</var> is non-empty, set
<var>transceiver</var>.<a>[[\Sender]]</a>.<a>[[\sendEncodings]]</a>
to <var>sendEncodings</var>.</p>
</li>
<li>
<p>If no suitable transceiver is found
(<var>transceiver</var> is unset), run the following
steps:</p>
<ol>
<li>
<p>If the <var>description</var> is of type <code>"offer"</code>
and contains a request to receive simulcast, use the order
of the rid values specified in the simulcast attribute to create
an <code><a>RTCRtpEncodingParameters</a></code> dictionary for
each of the simulcast layers, populating the <code>rid</code> member
according to the corresponding rid value, and let <var>sendEncodings</var>
be the list containing the created dictionaries. Otherwise,
let <var>sendEncodings</var> be an empty list.</p>
</li>
<li>
<p><a>Create an RTCRtpSender</a>, <var>sender</var>,
from the <a>media description</a> using <var>sendEncodings</var>.</p>
Expand Down

0 comments on commit d9ee35d

Please sign in to comment.