From 59391a43665cfcd4a6bbc7802f1fdf8296ed1814 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Mon, 22 Aug 2022 10:57:29 +0200 Subject: [PATCH] rtmp client: fix play command id --- internal/rtmp/conn.go | 2 +- internal/rtmp/conn_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/rtmp/conn.go b/internal/rtmp/conn.go index b0851442..e747e171 100644 --- a/internal/rtmp/conn.go +++ b/internal/rtmp/conn.go @@ -237,7 +237,7 @@ func (c *Conn) InitializeClient(u *url.URL, isPublishing bool) error { ChunkStreamID: 4, MessageStreamID: 0x1000000, Name: "play", - CommandID: 0, + CommandID: 3, Arguments: []interface{}{ nil, actionpath, diff --git a/internal/rtmp/conn_test.go b/internal/rtmp/conn_test.go index 1da4ac52..27f02a28 100644 --- a/internal/rtmp/conn_test.go +++ b/internal/rtmp/conn_test.go @@ -130,7 +130,7 @@ func TestInitializeClient(t *testing.T) { ChunkStreamID: 4, MessageStreamID: 0x1000000, Name: "play", - CommandID: 0, + CommandID: 3, Arguments: []interface{}{ nil, "",