Skip to content

Commit

Permalink
Make type an optional property (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qizot authored Oct 5, 2023
1 parent 16b476f commit 8ff7a8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The package can be installed by adding `membrane_rtmp_plugin` to your list of de
```elixir
def deps do
[
{:membrane_rtmp_plugin, "~> 0.17.2"}
{:membrane_rtmp_plugin, "~> 0.17.3"}
]
end
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ defmodule Membrane.RTMP.Messages.Connect do
def from_data([@name, tx_id, properties]) do
%{
"app" => app,
"type" => type,
"tcUrl" => tc_url
} = properties

%__MODULE__{
app: app,
type: type,
type: Map.get(properties, "type", ""),
supports_go_away: Map.get(properties, "supportsGoAway", false),
# some RTMP clients may not include flashVer in the message (eg. PRISM)
flash_version: Map.get(properties, "flashVer", "FMLE/3.0 (compatible; FMSc/1.0)"),
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Membrane.RTMP.Mixfile do
use Mix.Project

@version "0.17.2"
@version "0.17.3"
@github_url "https://github.com/membraneframework/membrane_rtmp_plugin"

def project do
Expand Down

0 comments on commit 8ff7a8e

Please sign in to comment.