From a19a20abfb70359ef93849f0d62a00b498fb7ddb Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Tue, 16 Aug 2022 12:55:54 +0200 Subject: [PATCH] rtmp: set right command ID when replying to a play request --- internal/rtmp/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rtmp/conn.go b/internal/rtmp/conn.go index 3535d864..5f04e75a 100644 --- a/internal/rtmp/conn.go +++ b/internal/rtmp/conn.go @@ -510,7 +510,7 @@ func (c *Conn) InitializeServer() (*url.URL, bool, error) { ChunkStreamID: 5, MessageStreamID: 0x1000000, Name: "onStatus", - CommandID: 4, + CommandID: cmd.CommandID, Arguments: []interface{}{ nil, flvio.AMFMap{