Beispiel #1
0
 private void endButton_Click(object sender, RoutedEventArgs e)
 {
     if (m_joined)
     {
         m_joined = false;
         m_engine.leaveChannel();
         foreach (var box in hostList)
         {
             box.Image = null;
         }
         videoLocal.Image = null;
         SwitchAudioRecording();
     }
 }
Beispiel #2
0
        private void btnJoinChannel_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrWhiteSpace(textChannel.Text))
            {
                return;
            }

            if (!m_joined)
            {
                if (m_engine.joinChannel("", textChannel.Text, "", 0) == 0)
                {
                    m_joined            = true;
                    btnJoinChannel.Text = "Leave Channel";
                }
            }
            else
            {
                if (m_engine.leaveChannel() == 0)
                {
                    m_joined            = false;
                    btnJoinChannel.Text = "Join Channel";
                }
            }
        }