//SEND Stream ??????? private void m_pRtpSession_NewSendStream(object sender, RTP_SendStreamEventArgs e) { this.BeginInvoke(new MethodInvoker(delegate() { })); }
/// <summary> /// This method is called when RTP session creates new send stream. /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">Event data.</param> private void m_pRtpSession_NewSendStream(object sender, RTP_SendStreamEventArgs e) { d_SendStream = Dispatcher.BeginInvoke(new Action(delegate() { var selectedInDevice = cbAudioInDevices.SelectedItem as AudioInDevice; m_pAudioInRTP = new AudioIn_RTP(selectedInDevice, 20, m_pAudioCodecs, m_pSendStream); m_pAudioInRTP.Start(); })); }