pub async fn write_rtcp(
        &self,
        pkts: &[Box<dyn rtcp::packet::Packet + Send + Sync>],
    ) -> Result<usize> {
        let srtcp_session = self.srtcp_session.lock().await;
        if let Some(srtcp_session) = &*srtcp_session {
            let raw = rtcp::packet::marshal(pkts)?;
            Ok(srtcp_session.write(&raw, false).await?)
        } else {
            Ok(0)
        }
    }
/// write_rtcp sends a user provided RTCP packet to the connected peer. If no peer is connected the
/// packet is discarded.
write_rtcp sends a user provided RTCP packet to the connected peer. If no peer is connected the
packet is discarded.
write_rtcp sends a user provided RTCP packet to the connected peer . If no peer is connected the packet is discarded .
pub async fn write_rtcp(
        &self,
        pkts: &[Box<dyn rtcp::packet::Packet + Send + Sync>],
    ) -> Result<usize> {
        let srtcp_session = self.srtcp_session.lock().await;
        if let Some(srtcp_session) = &*srtcp_session {
            let raw = rtcp::packet::marshal(pkts)?;
            Ok(srtcp_session.write(&raw, false).await?)
        } else {
            Ok(0)
        }
    }
pub async fn write_rtcp ( & self , pkts : & [ Box < dyn rtcp :: packet :: Packet + Send + Sync > ] , ) -> Result < usize > { let srtcp_session = self . srtcp_session . lock ( ) . await ; if let Some ( srtcp_session ) = & * srtcp_session { let raw = rtcp :: packet :: marshal ( pkts ) ? ; Ok ( srtcp_session . write ( & raw , false ) . await ? ) } else { Ok ( 0 ) } }
write_rtcp sends a user provided RTCP packet to the connected peer.
write_rtcp sends a user provided RTCP packet to the connected peer .
&self
pkts
&[Box<dyn rtcp::packet::Packet + Send + Sync>]