/// <summary> /// /// </summary> /// <param name="connectionId"></param> /// <param name="sender"></param> public virtual void RemoveSender(string connectionId, IStreamSender sender) { sender.Track.Stop(); sender.SetSender(connectionId, null); if (ExistConnection(connectionId)) { RemoveTrack(connectionId, sender.Track); } }
/// <summary> /// /// </summary> /// <param name="connectionId"></param> /// <param name="sender"></param> /// <returns></returns> public virtual void AddSender(string connectionId, IStreamSender sender) { var transceiver = m_handler.AddSenderTrack(connectionId, sender.Track); sender.SetSender(connectionId, transceiver.Sender); }