Beispiel #1
0
 private void Skype_CallVideoStatusChanged(Call call, TCallVideoStatus status)
 {
     this.Logger.Debug(System.Reflection.MethodBase.GetCurrentMethod().Name);
 }
Beispiel #2
0
        public void OurCallVideoStatusChanged(Call call, TCallVideoStatus status)
        {
            // Always use try/catch with ANY Skype calls.
            try
            {
                // Write Call Video Status Changed to Window.
                AddTextToTextBox1(DateTime.Now.ToLocalTime() + ": " +
                 "Call Video Status Changed - Call Id: " + call.Id +
                 " - Type Converted: " + skype.Convert.CallTypeToText(call.Type) +
                 " - Type: " + call.Type +
                 " - PartnerHandle: " + call.PartnerHandle +
                 " - TCallVideoStatus Converted Status: " + skype.Convert.CallVideoStatusToText(status) +
                 " - TCallVideoStatus: " + status +
                 "\r\n");
            }
            catch (Exception e)
            {
                // Possibly old Skype4COM version, log an error, drop into debug if wanted.
                AddTextToTextBox1(DateTime.Now.ToLocalTime() + ": " +
                 "Call Video Status Changed Event Fired - Bad Text" +
                 " - Exception Source: " + e.Source + " - Exception Message: " + e.Message +
                 "\r\n");

                // If the "Use Auto Debug" check box is checked and we are in debug, drop into debug here when retry, otherwise, prompt for action.
                Debug.Assert(!this.UseAutoDebug.Checked);
            }
        }