Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Fix to_type_string/1 for 3rd party endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
mickel8 committed Jun 23, 2023
1 parent 1e87c76 commit 8c52239
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/membrane_rtc_engine/endpoints/webrtc/media_event.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ defmodule Membrane.RTC.Engine.Endpoint.WebRTC.MediaEvent do
@moduledoc false

alias Membrane.RTC.Engine.Endpoint
alias Membrane.RTC.Engine.Endpoint.{HLS, RTSP, WebRTC}
alias Membrane.RTC.Engine.Endpoint.WebRTC.TrackReceiver
alias Membrane.RTC.Engine.Track

Expand Down Expand Up @@ -363,7 +362,5 @@ defmodule Membrane.RTC.Engine.Endpoint.WebRTC.MediaEvent do

defp to_track_variants(bitrate) when is_number(bitrate), do: %{high: bitrate}

defp to_type_string(WebRTC), do: "webrtc"
defp to_type_string(HLS), do: "hls"
defp to_type_string(RTSP), do: "rtsp"
defp to_type_string(type), do: Module.split(type) |> List.last() |> String.downcase()
end

0 comments on commit 8c52239

Please sign in to comment.