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

Fix to_type_string/1 for 3rd party endpoints #285

Merged
merged 1 commit into from
Jun 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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