From f50a4d91b4180d3b7232660c79766e09375f0913 Mon Sep 17 00:00:00 2001 From: Philip Giuliani Date: Mon, 22 Sep 2025 14:10:52 +0200 Subject: [PATCH] Add tx_id to fix compatibility with Livestream Studio 6 and some hardware encoders --- lib/membrane_rtmp_plugin/rtmp/message_handler.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/membrane_rtmp_plugin/rtmp/message_handler.ex b/lib/membrane_rtmp_plugin/rtmp/message_handler.ex index c0e447e..bb75e25 100644 --- a/lib/membrane_rtmp_plugin/rtmp/message_handler.ex +++ b/lib/membrane_rtmp_plugin/rtmp/message_handler.ex @@ -171,8 +171,8 @@ defmodule Membrane.RTMP.MessageHandler do # According to ffmpeg's documentation, this command should prepare the server to receive media streams # We are simply acknowledging the message - defp do_handle_client_message(%Messages.FCPublish{}, _header, state) do - %Messages.Anonymous{name: "onFCPublish", properties: []} + defp do_handle_client_message(%Messages.FCPublish{} = fc_publish, _header, state) do + %Messages.Anonymous{name: "onFCPublish", tx_id: fc_publish.tx_id, properties: []} |> send_rtmp_payload(state.socket, chunk_stream_id: 3) {:cont, state}