mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
expose transport details (#850)
add Client.Transport, ServerConn.Transport ServerSession.Transport
This commit is contained in:
15
transport_protocol_test.go
Normal file
15
transport_protocol_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package gortsplib
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestTransportProtocolString(t *testing.T) {
|
||||
tr := TransportUDPMulticast
|
||||
require.NotEqual(t, "unknown", tr.String())
|
||||
|
||||
tr = TransportProtocol(15)
|
||||
require.Equal(t, "unknown", tr.String())
|
||||
}
|
Reference in New Issue
Block a user