Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LVala committed Jul 22, 2024
1 parent b69e5c2 commit 310fda7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/echo/lib/echo/peer_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ defmodule Echo.PeerHandler do
for packet <- packets do
case packet do
{track_id, %ExRTCP.Packet.PayloadFeedback.PLI{}} when state.in_video_track_id != nil ->
dbg(track_id)
Logger.info("Received keyframe request. Sending PLI.")
:ok = PeerConnection.send_pli(state.peer_connection, state.in_video_track_id, "h")

Expand Down
5 changes: 3 additions & 2 deletions lib/ex_webrtc/peer_connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ defmodule ExWebRTC.PeerConnection do
* `:track_muted`, `:track_ended` - these match the [MediaStreamTrack events](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack#events).
* `:rtp` and `:rtcp` - these contain packets received by the PeerConnection. The third element of `:rtp` tuple is a simulcast RID and is set to `nil` if simulcast
is not used.
* each of the packets in `:rtcp` message contains MediaStreamTrack id it was matched to, or `nil`. In case of PLI and NACK, this is the id of an outgoing
(sender's) track id, in case of Sender and Receiver Reports - incoming (receiver's) track id.
* each of the packets in `:rtcp` message is in the form of `{track_id, packet}` tuple, where `track_id` is the id of the corrsponding track.
In case of PLI and NACK, this is the id of an outgoing (sender's) track id, in case of Sender and Receiver Reports - incoming (receiver's) track id.
If matching to a track was not possible (like in the case of TWCC packedts), `track_id` is set to `nil`.
"""
@type message() ::
{:ex_webrtc, pid(),
Expand Down

0 comments on commit 310fda7

Please sign in to comment.