Skip to content

Commit d183868

Browse files
Add tx_id to fix compatibility with some rtmp clients (#115)
Add tx_id to fix compatibility with Livestream Studio 6 and some hardware encoders
1 parent f218d53 commit d183868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/membrane_rtmp_plugin/rtmp/message_handler.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ defmodule Membrane.RTMP.MessageHandler do
171171

172172
# According to ffmpeg's documentation, this command should prepare the server to receive media streams
173173
# We are simply acknowledging the message
174-
defp do_handle_client_message(%Messages.FCPublish{}, _header, state) do
175-
%Messages.Anonymous{name: "onFCPublish", properties: []}
174+
defp do_handle_client_message(%Messages.FCPublish{} = fc_publish, _header, state) do
175+
%Messages.Anonymous{name: "onFCPublish", tx_id: fc_publish.tx_id, properties: []}
176176
|> send_rtmp_payload(state.socket, chunk_stream_id: 3)
177177

178178
{:cont, state}

0 commit comments

Comments
 (0)