diff --git a/examples/echo/lib/echo/peer_handler.ex b/examples/echo/lib/echo/peer_handler.ex index b7ecff32..3a886eb8 100644 --- a/examples/echo/lib/echo/peer_handler.ex +++ b/examples/echo/lib/echo/peer_handler.ex @@ -127,6 +127,11 @@ defmodule Echo.PeerHandler do {:ok, state} end + defp handle_webrtc_msg({:rtcp, _packets}, state) do + # do something with RTCP packets + {:ok, state} + end + defp handle_webrtc_msg({:rtp, id, packet}, %{in_audio_track_id: id} = state) do PeerConnection.send_rtp(state.peer_connection, state.out_audio_track_id, packet) {:ok, state}