diff --git a/jsep.go b/jsep.go index e42f92a..6e690ea 100644 --- a/jsep.go +++ b/jsep.go @@ -117,9 +117,7 @@ func (s *SessionDescription) WithValueAttribute(key, value string) *SessionDescr // WithICETrickleAdvertised advertises ICE trickle support in the session description. // See https://datatracker.ietf.org/doc/html/rfc9429#section-5.2.1 func (s *SessionDescription) WithICETrickleAdvertised() *SessionDescription { - s.WithValueAttribute(AttrKeyICEOptions, "trickle ice2") - - return s + return s.WithValueAttribute(AttrKeyICEOptions, "trickle") } // WithFingerprint adds a fingerprint to the session description. diff --git a/jsep_test.go b/jsep_test.go index 42dd7b1..015f84b 100644 --- a/jsep_test.go +++ b/jsep_test.go @@ -56,7 +56,7 @@ func TestSessionDescriptionAttributes(t *testing.T) { sd = sd.WithICETrickleAdvertised() assert.Len(t, sd.Attributes, 3) assert.Equal(t, AttrKeyICEOptions, sd.Attributes[2].Key) - assert.Equal(t, "trickle ice2", sd.Attributes[2].Value) + assert.Equal(t, "trickle", sd.Attributes[2].Value) }) t.Run("WithFingerprint", func(t *testing.T) {