NewTOAPIA.Net.Rtp.RtpSession.SendAppPacket C# (CSharp) Méthode

SendAppPacket() public méthode

SendAppPacket is used to send application specific data to all other RtpListeners on the network.
public SendAppPacket ( uint ssrc, string name, byte subtype, byte data, RtcpInterval when ) : void
ssrc uint
name string 4 ASCII characters
subtype byte 0 to 31, app specific "type of data"
data byte data is size sensitive, the total size of the packet cannot exceed 255 bytes
when RtcpInterval
Résultat void
        public void SendAppPacket(uint ssrc, string name, byte subtype, byte[] data, RtcpInterval when)
        {
            if(participant == null)
            {
                throw new RtcpSendingDisabledException(Strings.SendAppPacketNotAllowed);
            }

            // Add the packet to the AppPacket queue
            cpb.Add_APPReport(ssrc, name, subtype, data);

            if(RtcpInterval.Now == when)
            {
                rtcpSender.SendRtcpDataNow();
            }
        }