private void SwitchingVideoDeviceEventHandler(VideoDeviceEventContext eventContext) { MsPlayerContainer.Visibility = Visibility.Visible; MsPlayer.OpenDevice(eventContext.OwnerVideoDevice); _desktopWindowCollector?.SetWindowHandle(MsPlayerContainer.Handle); //_setupVideoLiveAndRecordingDevices?.SetVideoDevice(eventContext.OwnerVideoDevice); }
private bool EventFilter(VideoDeviceEventContext eventContext) { return(eventContext.EventType == SwitchingVideoDeviceSourceEventType.Video1); }