예제 #1
0
 private void voipclient_OnHotKeyToggle(int nHotKeyID, bool bActive)
 {
     //a registered hotkey is active
     if (nHotKeyID == PUSH_TO_TALK_ID)
     {
         if (bActive)
         {
             voipclient.StartTransmitting();
             UpdateUserIcon(voipclient.GetMyUserID(), true);
         }
         else
         {
             voipclient.StopTransmitting();
             UpdateUserIcon(voipclient.GetMyUserID(), false);
         }
     }
 }
예제 #2
0
 private void voipclient_OnHotKeyToggle(int nHotKeyID, bool bActive)
 {
     //a registered hotkey is active
     if (nHotKeyID == kiPUSH_TO_TALK_ID)
     {
         if (bActive)
         {
             //sendDDDPushToTalkEvent();
             m_voipclient.StartTransmitting();
             //UpdateUserIcon(m_voipclient.GetMyUserID(), true);
         }
         else
         {
             //sendDDDStoppedTalkingEvent();
             m_voipclient.StopTransmitting();
             //UpdateUserIcon(m_voipclient.GetMyUserID(), false);
         }
     }
 }
예제 #3
0
 private void voipclient_OnHotKeyToggle(int nHotKeyID, bool bActive)
 {
     logDebugOnly(String.Format("Conaito OnHotKeyToggle event received\n"));
     if (nHotKeyID == kiPUSH_TO_TALK_ID)
     {
         if (bActive)
         {
             sendDDDPushToTalkEvent();
             m_voipclient.StartTransmitting();
             UpdateUserIcon(m_voipclient.GetMyUserID(), true);
         }
         else
         {
             sendDDDStoppedTalkingEvent();
             m_voipclient.StopTransmitting();
             UpdateUserIcon(m_voipclient.GetMyUserID(), false);
         }
     }
 }