Browse Source

rtmp client: fix play command id

pull/1128/head
aler9 3 years ago
parent
commit
59391a4366
  1. 2
      internal/rtmp/conn.go
  2. 2
      internal/rtmp/conn_test.go

2
internal/rtmp/conn.go

@ -237,7 +237,7 @@ func (c *Conn) InitializeClient(u *url.URL, isPublishing bool) error { @@ -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,

2
internal/rtmp/conn_test.go

@ -130,7 +130,7 @@ func TestInitializeClient(t *testing.T) { @@ -130,7 +130,7 @@ func TestInitializeClient(t *testing.T) {
ChunkStreamID: 4,
MessageStreamID: 0x1000000,
Name: "play",
CommandID: 0,
CommandID: 3,
Arguments: []interface{}{
nil,
"",

Loading…
Cancel
Save