-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from membraneframework/feat/fir-pli-handling
Feat/fir pli handling
- Loading branch information
Showing
14 changed files
with
296 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Config | ||
|
||
config :membrane_rtp_plugin, :fir_throttle_duration_ms, 500 |
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 |
---|---|---|
@@ -1,20 +1,23 @@ | ||
defmodule Membrane.RTCP.FeedbackPacket.AFB do | ||
@moduledoc """ | ||
TODO: Mock module, for now ignores PSFB=206 & PT=15 packets. | ||
Should encode and decode [Application Layer Feedback](https://datatracker.ietf.org/doc/html/rfc4585#section-6.4) packets. | ||
[Application Layer Feedback](https://datatracker.ietf.org/doc/html/rfc4585#section-6.4) packets. | ||
They use PT=PSFB (206) & FMT=15. | ||
Since the message must be handled at the application layer, the struct simply wraps a binary content of message | ||
""" | ||
|
||
@behaviour Membrane.RTCP.FeedbackPacket | ||
|
||
defstruct [] | ||
@enforce_keys [:message] | ||
defstruct @enforce_keys | ||
|
||
@impl true | ||
def decode(_binary) do | ||
{:ok, %__MODULE__{}} | ||
def decode(binary) do | ||
{:ok, %__MODULE__{message: binary}} | ||
end | ||
|
||
@impl true | ||
def encode(_packet) do | ||
<<>> | ||
def encode(%__MODULE__{message: message}) when is_binary(message) do | ||
message | ||
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
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
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
Oops, something went wrong.