From 8ff7a8eb11ae2d201e1045e393ed3a6bc752b8f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Per=C5=BCy=C5=82o?= Date: Thu, 5 Oct 2023 13:56:39 +0200 Subject: [PATCH] Make type an optional property (#70) --- README.md | 2 +- .../rtmp/source/messages/command/connect.ex | 3 +-- mix.exs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c57dbe07..2fa34972 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/lib/membrane_rtmp_plugin/rtmp/source/messages/command/connect.ex b/lib/membrane_rtmp_plugin/rtmp/source/messages/command/connect.ex index a8248be8..ad643e39 100644 --- a/lib/membrane_rtmp_plugin/rtmp/source/messages/command/connect.ex +++ b/lib/membrane_rtmp_plugin/rtmp/source/messages/command/connect.ex @@ -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)"), diff --git a/mix.exs b/mix.exs index 7c45ab16..c8facd0d 100644 --- a/mix.exs +++ b/mix.exs @@ -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