Skip to content

Commit

Permalink
Add debug log on rtp_packets length
Browse files Browse the repository at this point in the history
  • Loading branch information
mickel8 committed Jul 15, 2024
1 parent 553372b commit d66e1fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/send_from_file/lib/send_from_file/peer_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ defmodule SendFromFile.PeerHandler do
{:ok, frame} ->
{rtp_packets, payloader} = VP8.Payloader.payload(state.video_payloader, frame.data)

dbg(length(rtp_packets))

# 3_000 = 90_000 (VP8 clock rate) / 30 FPS
next_sequence_number =
Enum.reduce(rtp_packets, state.next_video_sequence_number, fn packet, sequence_number ->
Expand Down

0 comments on commit d66e1fd

Please sign in to comment.