Esempio n. 1
0
 private QLCallManager()
 {
     deviceManager = QLDeviceManager.GetInstance();
     qlConfig      = QLConfigManager.GetInstance();
     callView      = QLCallView.GetInstance();
     _callList     = new ObservableCollection <QLCall>();
 }
Esempio n. 2
0
        public static ErrorNumber AnswerCall(QLCall call, CallMode callMode)
        {
            string cryptoSuiteType = QLConfigManager.GetInstance().GetProperty(PropertyKey.CryptoSuiteType);
            string srtpKey         = QLConfigManager.GetInstance().GetProperty(PropertyKey.SRTPKey);
            var    authToken       = QLConfigManager.GetInstance().GetProperty(PropertyKey.AuthToken);

            return(AnswerCall(call.CallHandle, callMode, authToken, cryptoSuiteType, srtpKey, true));
        }
Esempio n. 3
0
 /// <summary>
 /// 加载成功处理器
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void QLCallView_Load(object sender, EventArgs e)
 {
     qlConfig    = QLConfigManager.GetInstance();
     callManager = QLCallManager.GetInstance();
     callManager.CurrentCallChanged += () =>
     {
         SetCurrentCall(callManager.CurrentCall);
     };
 }
Esempio n. 4
0
 public static QLConfigManager GetInstance()
 {
     if (null == instance)
     {
         lock (lockObj)
         {
             if (instance == null)
             {
                 instance = new QLConfigManager();
             }
         }
     }
     return(instance);
 }