Exemple #1
0
 //AUDIO RECEIVE NEW
 private void m_pRtpSession_NewReceiveStream2(object sender, RTP_ReceiveStreamEventArgs e)
 {
     this.BeginInvoke(new MethodInvoker(delegate()
     {
         wfrm_Receive2 frm2 = new wfrm_Receive2(e.Stream,this);
         //frm.Show();
     }));
 }
 /// <summary>
 /// This method is called when RTP session gets new receive stream.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">Event data.</param>
 private void m_pRtpSession_NewReceiveStream(object sender, RTP_ReceiveStreamEventArgs e)
 {
     d_RecieveStream =  Dispatcher.BeginInvoke(new Action(delegate()
     {
         /*wfrm_Receive frm = new wfrm_Receive(e.Stream, m_pAudioCodecs);
         frm.Show();*/
         var selectedOutDevice = cbAudioOutDevices.SelectedItem as AudioOutDevice;
         m_pAudioOut = new AudioOut_RTP(selectedOutDevice, e.Stream, m_pAudioCodecs);
         m_pAudioOut.Start();
     }));
 }