Skip to content

Commit

Permalink
Apply requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LVala committed Oct 31, 2023
1 parent 35a0acb commit 9d93449
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/ex_webrtc/peer_connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,10 @@ defmodule ExWebRTC.PeerConnection do
{:ok, ice_ufrag, ice_pwd} = ICEAgent.get_local_credentials(state.ice_agent)
{:ok, dtls_fingerprint} = ExDTLS.get_cert_fingerprint(state.dtls_client)

answer = %ExSDP{ExSDP.new() | timing: %ExSDP.Timing{start_time: 0, stop_time: 0}}

answer =
case ExSDP.get_attribute(remote_offer, :ice_options) do
{:ice_options, "trickle"} = attr -> ExSDP.add_attribute(answer, attr)
_other -> answer
end
%ExSDP{ExSDP.new() | timing: %ExSDP.Timing{start_time: 0, stop_time: 0}}
# we only support trickle ICE, so non-trickle offers should be rejected earlier
|> ExSDP.add_attribute({:ice_options, "trickle"})

config =
[
Expand Down

0 comments on commit 9d93449

Please sign in to comment.