Skip to content

Commit

Permalink
Change some SDP utils functions to private
Browse files Browse the repository at this point in the history
  • Loading branch information
LVala committed Aug 5, 2024
1 parent 69b71f2 commit d417b37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ex_webrtc/sdp_utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule ExWebRTC.SDPUtils do
end
end

def ensure_mid(sdp) do
defp ensure_mid(sdp) do
sdp.media
|> Enum.reduce_while({:ok, []}, fn media, {:ok, acc} ->
case ExSDP.get_attributes(media, :mid) do
Expand All @@ -39,7 +39,7 @@ defmodule ExWebRTC.SDPUtils do
end
end

def ensure_bundle(sdp) do
defp ensure_bundle(sdp) do
groups = ExSDP.get_attributes(sdp, ExSDP.Attribute.Group)

mline_mids = get_bundle_mids(sdp.media)
Expand All @@ -64,7 +64,7 @@ defmodule ExWebRTC.SDPUtils do
Enum.filter(groups, fn %ExSDP.Attribute.Group{semantics: name} -> name == to_filter end)
end

def ensure_rtcp_mux(sdp) do
defp ensure_rtcp_mux(sdp) do
sdp.media
|> Enum.all?(&(ExSDP.get_attribute(&1, :rtcp_mux) == :rtcp_mux))
|> case do
Expand Down

0 comments on commit d417b37

Please sign in to comment.