private void RegisterCallbacks() { IMeetingServiceDotNetWrap meetingServiceDotNetWrap = CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap(); IMeetingVideoControllerDotNetWrap videoControllerDotNetWrap = meetingServiceDotNetWrap.GetMeetingVideoController(); videoControllerDotNetWrap.Add_CB_onUserVideoStatusChange((userId, videoStatus) => { if (_meetingView.bottom_menu.Visibility != Visibility.Visible && videoStatus == VideoStatus.Video_ON) { _meetingView.bottom_menu.Visibility = Visibility.Visible; _meetingView.Height += 1; } if (_meetingView.ProgressingView != null) { _meetingView.ProgressingView.Close(); _meetingView.ProgressingView = null; } }); IMeetingParticipantsControllerDotNetWrap meetingParticipantsController = meetingServiceDotNetWrap.GetMeetingParticipantsController(); meetingServiceDotNetWrap.Add_CB_onMeetingStatusChanged((status, result) => { }); meetingParticipantsController.Add_CB_onHostChangeNotification((userId) => { }); meetingParticipantsController.Add_CB_onLowOrRaiseHandStatusChanged((bLow, userId) => { }); meetingParticipantsController.Add_CB_onUserJoin((userIds) => { }); meetingParticipantsController.Add_CB_onUserLeft((userIds) => { }); meetingParticipantsController.Add_CB_onUserNameChanged((userId, userName) => { }); //CZoomSDKeDotNetWrap.Instance.GetUIHookControllerWrap().Add_CB_onUIActionNotify((type, msg) => //{ // if (type == UIHOOKHWNDTYPE.UIHOOKWNDTYPE_MAINWND) // { // if (!_wndMsgHandled) // { // _wndMsgHandled = true; // App.Current.Dispatcher.BeginInvoke(new Action(() => // { // Hwnds hwnds = CZoomSDKeDotNetWrap.Instance.GetMeetingServiceWrap().GetUIController().GetMeetingUIWnds(); // Win32APIs.SetWindowLong(hwnds.firstViewHandle, -16, 369164288); // Win32APIs.SetParent(hwnds.firstViewHandle, new WindowInteropHelper(_meetingView).Handle); // _meetingView.SyncVideoUI(); // })); // } // } //}); }
public void Add_CB_onUserNameChanged(onUserNameChanged cb) { InvokeAPI(() => wrappedController.Add_CB_onUserNameChanged(cb)); }