Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions jsep.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion jsep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading