예제 #1
0
        private void SwitchingVideoDeviceEventHandler(VideoDeviceEventContext eventContext)
        {
            MsPlayerContainer.Visibility = Visibility.Visible;

            MsPlayer.OpenDevice(eventContext.OwnerVideoDevice);

            _desktopWindowCollector?.SetWindowHandle(MsPlayerContainer.Handle);
            //_setupVideoLiveAndRecordingDevices?.SetVideoDevice(eventContext.OwnerVideoDevice);
        }
예제 #2
0
 private bool EventFilter(VideoDeviceEventContext eventContext)
 {
     return(eventContext.EventType == SwitchingVideoDeviceSourceEventType.Video1);
 }