Skip to content

Commit

Permalink
Fix rtcp for no track
Browse files Browse the repository at this point in the history
  • Loading branch information
roznawsk committed Oct 8, 2024
1 parent 363fae9 commit 24ce188
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ex_webrtc/peer_connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2087,6 +2087,9 @@ defmodule ExWebRTC.PeerConnection do
nil ->
{nil, state}

{%{sender: %{track: nil}}, _idx} ->
{nil, state}

{tr, idx} ->
tr = RTPTransceiver.receive_pli(tr, pli)
transceivers = List.replace_at(state.transceivers, idx, tr)
Expand Down

0 comments on commit 24ce188

Please sign in to comment.