mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
add Transport.Profile, media.Profile (#873)
this will allow to support AVPF in the future.
This commit is contained in:
@@ -752,7 +752,7 @@ func TestServerRecord(t *testing.T) {
|
||||
}
|
||||
|
||||
if ca.secure == "secure" {
|
||||
inTH.Secure = true
|
||||
inTH.Profile = headers.TransportProfileSAVP
|
||||
|
||||
key := make([]byte, srtpKeyLength)
|
||||
_, err = rand.Read(key)
|
||||
@@ -800,7 +800,7 @@ func TestServerRecord(t *testing.T) {
|
||||
}
|
||||
|
||||
if ca.secure == "secure" {
|
||||
require.True(t, th.Secure)
|
||||
require.Equal(t, headers.TransportProfileSAVP, th.Profile)
|
||||
|
||||
var keyMgmt headers.KeyMgmt
|
||||
err = keyMgmt.Unmarshal(res.Header["KeyMgmt"])
|
||||
|
Reference in New Issue
Block a user