-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate answer from RTPTransceivers
- Loading branch information
Showing
6 changed files
with
136 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
defmodule ExWebRTC.RTPCodecParameters do | ||
@moduledoc """ | ||
RTPCodecParameters | ||
""" | ||
|
||
defstruct [:payload_type, :mime_type, :clock_rate, :channels, :sdp_fmtp_line, :rtcp_fbs] | ||
|
||
def new(type, rtp_mapping, fmtp, rtcp_fbs) do | ||
%__MODULE__{ | ||
payload_type: rtp_mapping.payload_type, | ||
mime_type: "#{type}/#{rtp_mapping.encoding}", | ||
clock_rate: rtp_mapping.clock_rate, | ||
channels: rtp_mapping.params, | ||
sdp_fmtp_line: fmtp, | ||
rtcp_fbs: rtcp_fbs | ||
} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
defmodule ExWebRTC.RTPReceiver do | ||
Check warning on line 1 in lib/ex_webrtc/rtp_receiver.ex GitHub Actions / Lint (OTP 26 / Elixir 1.15)
|
||
defstruct [:ssrc] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters