Hololens/Lib/Cameras.cs
//################################################################################
/// <summary>
/// Start the camera capture. After, frame could be captured.
/// </summary>
Start the camera capture. After, frame could be captured.
Start the camera capture . After frame could be captured .
public async Task StartCapture()
        {
            if (!_capture_enabled)
            {
                _displayRequest = new DisplayRequest();
                _displayRequest.RequestActive();
                _mediaCapture = new MediaCapture();
                await _mediaCapture.InitializeAsync();
                _captureElement = new CaptureElement { Source = _mediaCapture };
                await _mediaCapture.StartPreviewAsync(); 
                _capture_enabled = true;
            }
        }
public async Task StartCapture ( ) { if ( ! _capture_enabled ) { _displayRequest = new DisplayRequest ( ) ; _displayRequest . RequestActive ( ) ; _mediaCapture = new MediaCapture ( ) ; await _mediaCapture . InitializeAsync ( ) ; _captureElement = new CaptureElement { Source = _mediaCapture } ; await _mediaCapture . StartPreviewAsync ( ) ; _capture_enabled = true ; } }
Start the camera capture.
Start the camera capture .
// if the camera doesn't already capture video // needed for the system // create and initialyze MediaCapture // videostream must be send to a CaptureElement // capture start here