Skip to content

Commit

Permalink
Fix handling RTCP when there is no track (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
roznawsk authored Oct 10, 2024
1 parent 4782ace commit 261122a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/ex_webrtc/peer_connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2063,6 +2063,9 @@ defmodule ExWebRTC.PeerConnection do
nil ->
{nil, state}

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

# in case NACK was received, but RTX was not negotiated
# as NACK and RTX are negotiated independently
{%{sender: %{rtx_pt: nil}} = tr, _idx} ->
Expand All @@ -2087,6 +2090,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 261122a

Please sign in to comment.