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

@@ -120,7 +120,7 @@ func (sf *serverStreamFormat) writePacketRTP(pkt *rtp.Packet, ntp time.Time) err
if rsm, ok := r.setuppedMedias[sf.sm.media]; ok {
rsf := rsm.formats[pkt.PayloadType]
if r.setuppedSecure {
if isSecure(r.setuppedProfile) {
err = rsf.writePacketRTPEncoded(encr)
if err != nil {
r.onStreamWriteError(err)