mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
rtmp: move implementation to gortmplib (#4968)
Some checks are pending
code_lint / go (push) Waiting to run
code_lint / go_mod (push) Waiting to run
code_lint / docs (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_e2e (push) Waiting to run
Some checks are pending
code_lint / go (push) Waiting to run
code_lint / go_mod (push) Waiting to run
code_lint / docs (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_e2e (push) Waiting to run
This commit is contained in:
parent
e8b746b6d5
commit
1b8897d30d
164 changed files with 61 additions and 13218 deletions
|
|
@ -10,10 +10,10 @@ import (
|
|||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/bluenviron/gortmplib"
|
||||
"github.com/bluenviron/gortsplib/v4/pkg/format"
|
||||
"github.com/bluenviron/mediamtx/internal/conf"
|
||||
"github.com/bluenviron/mediamtx/internal/defs"
|
||||
"github.com/bluenviron/mediamtx/internal/protocols/rtmp"
|
||||
"github.com/bluenviron/mediamtx/internal/test"
|
||||
)
|
||||
|
||||
|
|
@ -101,7 +101,7 @@ func TestSource(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
defer nconn.Close()
|
||||
|
||||
conn := &rtmp.ServerConn{
|
||||
conn := &gortmplib.ServerConn{
|
||||
RW: nconn,
|
||||
}
|
||||
err = conn.Initialize()
|
||||
|
|
@ -117,7 +117,7 @@ func TestSource(t *testing.T) {
|
|||
err = conn.Accept()
|
||||
require.NoError(t, err)
|
||||
|
||||
w := &rtmp.Writer{
|
||||
w := &gortmplib.Writer{
|
||||
Conn: conn,
|
||||
Tracks: []format.Format{test.FormatH264, test.FormatMPEG4Audio},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue