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

@@ -110,7 +110,7 @@ func (sm *serverStreamMedia) writePacketRTCP(pkt rtcp.Packet) error {
// send unicast
for r := range sm.st.activeUnicastReaders {
if sm, ok := r.setuppedMedias[sm.media]; ok {
if r.setuppedSecure {
if isSecure(r.setuppedProfile) {
err = sm.writePacketRTCPEncoded(encr)
if err != nil {
r.onStreamWriteError(err)