Skip to content

Commit

Permalink
Use zero-latency jitter buffer (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
varsill authored Jun 11, 2024
1 parent 34b51cb commit 92c23de
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/membrane/live_compositor/live_compositor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,10 @@ defmodule Membrane.LiveCompositor do
links =
get_child({:rtp_receiver, ref})
|> via_out(Pad.ref(:output, ssrc),
options: [depayloader: RTP.H264.Depayloader, clock_rate: 90_000]
options: [depayloader: nil, clock_rate: 90_000]
)
|> child(%Membrane.RTP.JitterBuffer{latency: 0, clock_rate: 90_000})
|> child(RTP.H264.Depayloader)
|> get_child({:output_processor, pad_id})

actions = [spec: {links, group: output_group_id(pad_id)}]
Expand All @@ -652,8 +654,10 @@ defmodule Membrane.LiveCompositor do
links =
get_child({:rtp_receiver, ref})
|> via_out(Pad.ref(:output, ssrc),
options: [depayloader: RTP.Opus.Depayloader, clock_rate: 48_000]
options: [depayloader: nil, clock_rate: 48_000]
)
|> child(%Membrane.RTP.JitterBuffer{latency: 0, clock_rate: 48_000})
|> child(RTP.Opus.Depayloader)
|> get_child({:output_processor, pad_id})

{[spec: {links, group: output_group_id(pad_id)}], state}
Expand Down

0 comments on commit 92c23de

Please sign in to comment.