@@ -14,6 +14,7 @@ import (
1414 "testing"
1515 "time"
1616
17+ "github.com/bluenviron/gortmplib"
1718 "github.com/bluenviron/gortsplib/v4"
1819 "github.com/bluenviron/gortsplib/v4/pkg/base"
1920 "github.com/bluenviron/gortsplib/v4/pkg/description"
@@ -24,7 +25,6 @@ import (
2425 "github.com/stretchr/testify/require"
2526
2627 "github.com/bluenviron/mediamtx/internal/defs"
27- "github.com/bluenviron/mediamtx/internal/protocols/rtmp"
2828 "github.com/bluenviron/mediamtx/internal/protocols/whip"
2929 "github.com/bluenviron/mediamtx/internal/test"
3030)
@@ -216,7 +216,7 @@ func TestPathRunOnConnect(t *testing.T) {
216216 u , err = url .Parse ("rtmp://127.0.0.1:1935/test" )
217217 require .NoError (t , err )
218218
219- conn := & rtmp .Client {
219+ conn := & gortmplib .Client {
220220 URL : u ,
221221 Publish : true ,
222222 }
@@ -231,7 +231,7 @@ func TestPathRunOnConnect(t *testing.T) {
231231 u , err = url .Parse ("rtmps://127.0.0.1:1936/test" )
232232 require .NoError (t , err )
233233
234- conn := & rtmp .Client {
234+ conn := & gortmplib .Client {
235235 URL : u ,
236236 Publish : true ,
237237 TLSConfig : & tls.Config {InsecureSkipVerify : true },
@@ -458,15 +458,15 @@ func TestPathRunOnRead(t *testing.T) {
458458 u , err = url .Parse ("rtmp://127.0.0.1:1935/test?query=value" )
459459 require .NoError (t , err )
460460
461- conn := & rtmp .Client {
461+ conn := & gortmplib .Client {
462462 URL : u ,
463463 Publish : false ,
464464 }
465465 err = conn .Initialize (context .Background ())
466466 require .NoError (t , err )
467467 defer conn .Close ()
468468
469- r := & rtmp .Reader {
469+ r := & gortmplib .Reader {
470470 Conn : conn ,
471471 }
472472 err = r .Initialize ()
@@ -477,7 +477,7 @@ func TestPathRunOnRead(t *testing.T) {
477477 u , err = url .Parse ("rtmps://127.0.0.1:1936/test?query=value" )
478478 require .NoError (t , err )
479479
480- conn := & rtmp .Client {
480+ conn := & gortmplib .Client {
481481 URL : u ,
482482 Publish : false ,
483483 TLSConfig : & tls.Config {InsecureSkipVerify : true },
@@ -503,7 +503,7 @@ func TestPathRunOnRead(t *testing.T) {
503503 }
504504 }()
505505
506- r := & rtmp .Reader {
506+ r := & gortmplib .Reader {
507507 Conn : conn ,
508508 }
509509 err = r .Initialize ()
0 commit comments