public void CloseWinVideo() { if (this.isreturn == false || this.IsReturn == false) { Dispatcher.Invoke(new Action(() => { if (video != null) { video.Dispose(); video = null; } this.Height = win7OHeight; this.Width = iWinWidth; host.Child = null; src = src.Replace("VideoCall;", ""); //modify by 00327190 2015/8/12 strtemp = src; model.IsVideo = false; if (lync != null) //if (lync!=null && lync.Ishold == false) //2015/8/5 视屏情况下保持呼叫,isHold 为true ,此时不可以让加人按钮可用 { if (callType == CallHistoryType.HISTORY_CALL_DIALED) { btnAddContact.IsEnabled = true; } } if (lync.Ishold == true || lync.IsBlindTrans == true) //2015/8/18 视屏情况下保持呼叫或者转移失败,isHold 为true ,此时不可以让加人按钮可用 { btnAddContact.IsEnabled = false; btnBlindTransCall.IsEnabled = false; if (lync.IsBlindTrans == true)//2015/8/25 只要是盲转,则以下按钮都不能用 { btnCallSuspend.IsEnabled = false; btnVideo.IsEnabled = false; } } //modify by 00327190 2015/7/16 if (btnVideo.IsEnabled == false) { UpdateImage.UpdateData(imgVideo, "/Image/call/video_3.png"); } else { if (lync.toolBar.JointType == PhoneJointType.IPPhone_Device) { UpdateImage.UpdateData(imgVideo, "/Image/call/video_3.png"); } else { UpdateImage.UpdateData(imgVideo, "/Image/call/video_1.png"); } } this.UpdateLayout(); lync.IsBlindTrans = false; })); } }
public void SetVideoImage()//设置视频按钮图标 { if (lync.toolBar.JointType == PhoneJointType.IPPhone_Device) { UpdateImage.UpdateData(imgVideo, "/Image/call/video_3.png"); } else { if (imgVideo.Source.ToString().IndexOf("unvideo") != -1) { UpdateImage.UpdateData(imgVideo, "/Image/call/video_3.png"); //之前是3 2015/7/16 } else { UpdateImage.UpdateData(imgVideo, "/Image/call/unvideo_1.png"); } } }
private void slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { call.model.Slider_ValueChanged((int)e.NewValue * 10, type); slider.SelectionEnd = e.NewValue; //modify by 00327190 2015/7/25 静音经麦克的时候,调整音量可以使功能恢复 (之前是不支持 ) if (type == "MicPhone") { UpdateImage.UpdateData(call.imgMic, "/Image/call/Mic_1.png"); winCall.UnMuteMic(); //call.imgMic.Source = new BitmapImage(new Uri("/LyncWpfApp;component/Image/call/Mic_1.png", UriKind.RelativeOrAbsolute)); } else { UpdateImage.UpdateData(call.imgVol, "/Image/call/Spker_1.png"); winCall.UnMuteSpker(); //call.imgVol.Source = new BitmapImage(new Uri("/LyncWpfApp;component/Image/call/Spker_1.png", UriKind.RelativeOrAbsolute)); } }