CreateRtpSender() public method

Creates a basic RtpSender This RtpSender simply sends data over the wire. It uses the least amount of CPU and network bandwidth at the cost of reliability (i.e. it makes no attempts to improve data arrival at the remote site).
public CreateRtpSender ( string name, PayloadType pt, Hashtable priExns ) : RtpSender
name string
pt PayloadType
priExns System.Collections.Hashtable Private extensions for this RtpSender/Stream
return RtpSender
Example #1
0
        public virtual void JoinSession(RtpSession session, string participantName)
        {
            fSession = session;
            fParticipantName = participantName;

            // Must hook up events before creating sender so we know when the
            // ChannelType stream is added.
            HookRtpEvents();


            // Add the channel for graphics commands
            fRtpSender = fSession.CreateRtpSender(fParticipantName, ChannelType, null);
            //fRtpSender = fSession.CreateRtpSenderFec(fParticipantName, PayloadType.xApplication2, null, 0, 200);
            //fRtpSender.DelayBetweenPackets = 0;

        }