From bf0ab97a0f587a47dfcdeee4caec2f6916f47f80 Mon Sep 17 00:00:00 2001 From: Jan-Ivar Bruaroey Date: Fri, 12 Jul 2024 12:21:08 -0400 Subject: [PATCH 1/2] Update localDescription etc. attributes rather than just their sdp. --- webrtc.html | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/webrtc.html b/webrtc.html index 644530128..33bd726d0 100644 --- a/webrtc.html +++ b/webrtc.html @@ -4586,9 +4586,10 @@

connection.{{RTCPeerConnection/[[PendingRemoteDescription]]}} is not null, and represents the ICE [= generation =] for which - candidate was processed, add - candidate to - connection.{{RTCPeerConnection/[[PendingRemoteDescription]]}}.sdp. + candidate was processed, set + connection.{{RTCPeerConnection/[[PendingRemoteDescription]]}} + to a [=clone a description | clone of itself=] with + {{RTCSessionDescriptionInit/sdp}} updated to include candidate.

  • @@ -4597,9 +4598,10 @@

    connection.{{RTCPeerConnection/[[CurrentRemoteDescription]]}} is not null, and represents the ICE [= generation =] for which - candidate was processed, add - candidate to - connection.{{RTCPeerConnection/[[CurrentRemoteDescription]]}}.sdp. + candidate was processed, set + connection.{{RTCPeerConnection/[[CurrentRemoteDescription]]}} + to a [=clone a description | clone of itself=] with + {{RTCSessionDescriptionInit/sdp}} updated to include candidate.

  • @@ -12225,18 +12227,20 @@

    If connection.{{RTCPeerConnection/[[PendingLocalDescription]]}} is not null, and represents the ICE [= generation =] - for which candidate was gathered, add - candidate to - connection.{{RTCPeerConnection/[[PendingLocalDescription]]}}.sdp. + for which candidate was gathered, set + connection.{{RTCPeerConnection/[[PendingLocalDescription]]}} to a + [=clone a description | clone of itself=] with {{RTCSessionDescriptionInit/sdp}} + updated to include candidate.

  • If connection.{{RTCPeerConnection/[[CurrentLocalDescription]]}} is not null, and represents the ICE [= generation =] - for which candidate was gathered, add - candidate to - connection.{{RTCPeerConnection/[[CurrentLocalDescription]]}}.sdp. + for which candidate was gathered, set + connection.{{RTCPeerConnection/[[CurrentLocalDescription]]}} to a + [=clone a description | clone of itself=] with {{RTCSessionDescriptionInit/sdp}} + updated to include candidate.

  • @@ -12274,6 +12278,17 @@

    changing. The selected pair and {{RTCIceTransportState}} are related and are handled in the same task.

    +

    + To clone a description + with members type and sdp, return a new {{RTCSessionDescription}} + object constructed with {{RTCSessionDescription/type}} set to type, + and {{RTCSessionDescription/sdp}} set to sdp. +

    +
      +
    1. +

      +
    2. +

    When the [= ICE Agent =] indicates that an {{RTCIceTransport}} has changed either the selected candidate pair, the From 13c9f0108fae989d2b1191ecf696cb931674de05 Mon Sep 17 00:00:00 2001 From: Jan-Ivar Bruaroey Date: Fri, 12 Jul 2024 16:40:55 -0400 Subject: [PATCH 2/2] remove cruft --- webrtc.html | 5 ----- 1 file changed, 5 deletions(-) diff --git a/webrtc.html b/webrtc.html index 33bd726d0..4a0f514d6 100644 --- a/webrtc.html +++ b/webrtc.html @@ -12284,11 +12284,6 @@

    object constructed with {{RTCSessionDescription/type}} set to type, and {{RTCSessionDescription/sdp}} set to sdp.

    -
      -
    1. -

      -
    2. -

    When the [= ICE Agent =] indicates that an {{RTCIceTransport}} has changed either the selected candidate pair, the