//接听视频呼叫 public void AcceptVideoCall(ref STVideoWindow stLocalWnd, ref STVideoWindow stRemoteWnd) { LogManager.SystemLog.Debug(string.Format("Start UC_SDK_AcceptVideoCall")); int iRet = UCInterface.UC_SDK_AcceptVideoCall(stLocalWnd.hWnd, stLocalWnd.left, stLocalWnd.top, stLocalWnd.width, stLocalWnd.height, stRemoteWnd.hWnd, stRemoteWnd.left, stRemoteWnd.top, stRemoteWnd.width, stRemoteWnd.height); if (iRet != 0) { LogManager.SystemLog.Error(string.Format("UC_SDK_AcceptVideoCall = {0}", iRet)); } LogManager.SystemLog.Debug(string.Format("End UC_SDK_AcceptVideoCall")); }
//视频被呼叫 public void AcceptVideoCall() { IsVideo = true; STVideoWindow stLocalWnd = new STVideoWindow(); STVideoWindow stRemoteWnd = new STVideoWindow(); winCall.GetVideoPlayPara(ref stLocalWnd, ref stRemoteWnd); call.AcceptVideoCall(ref stLocalWnd, ref stRemoteWnd); winCall.SetVideoImage(); winCall.SetVideoLocalRemoteSize(); }
private void VideoCommandProcess() { try { IsVideo = true; if (winCall.imgVideo.Source.ToString().IndexOf("unvideo") == -1) { winCall.SetWinSize(); if (winCall.video == null) { winCall.SetUCVideo(); } //2015/7/27 if (winlync.isConnected == true) { winCall.btnVideo.IsEnabled = false; } STVideoWindow stLocalWnd = new STVideoWindow(); STVideoWindow stRemoteWnd = new STVideoWindow(); winCall.GetVideoPlayPara(ref stLocalWnd, ref stRemoteWnd); call.MakeVideoCall(ref stLocalWnd, ref stRemoteWnd); winCall.SetVideoImage(); winCall.SetVideoLocalRemoteSize(); } else { winCall.isreturn = false; // "强制变为false"; call.HangupVideoCall(); } } catch (System.Exception ex) { LogManager.SystemLog.Error(ex.ToString()); } }