add Transport.Profile, media.Profile (#873)

this will allow to support AVPF in the future.
This commit is contained in:
Alessandro Ros
2025-09-04 18:08:51 +02:00
committed by GitHub
parent d2cb011812
commit cf2ff2b564
14 changed files with 142 additions and 85 deletions

View File

@@ -6,6 +6,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/bluenviron/gortsplib/v4/pkg/format"
"github.com/bluenviron/gortsplib/v4/pkg/headers"
"github.com/bluenviron/gortsplib/v4/pkg/mikey"
"github.com/bluenviron/gortsplib/v4/pkg/sdp"
)
@@ -726,6 +727,7 @@ var casesSession = []struct {
Type: "video",
Control: "trackID=0",
Secure: true,
Profile: headers.TransportProfileSAVP,
Formats: []format.Format{&format.H264{
PayloadTyp: 96,
}},
@@ -762,6 +764,7 @@ var casesSession = []struct {
Type: "video",
Control: "trackID=0",
Secure: true,
Profile: headers.TransportProfileSAVP,
KeyMgmtMikey: &mikey.Message{ //nolint:dupl
Header: mikey.Header{
Version: 1,