/// <summary> /// /// </summary> /// <param name="address"></param> internal RtpChannel(RtpContext context, string hostAddress, Participant participant) { this.Context = context; this.HostAddress = hostAddress; this.Participant = participant; this.ReferenceCount = 0; }
public RtpCommunicator(string name, ClientConfig config) { this.Name = name; _modulesIndex = new MultiDictionary <IRtpModuleFactory, RtpModule>(true); _moduleFactories = new List <IRtpModuleFactory>(); _context = new RtpContext(config, Participant.Empty); _context.Active += OnContextActive; _context.Inactive += OnContextInactive; _context.ParticipantAdded += OnParticipantAdded; _context.ParticipantUpdated += OnParticipantUpdated; _context.ParticipantRemoved += OnParticipantRemoved; }