Hololens/Lib/Cameras.cs
//#############################################################################################
/// <summary>
/// Set the frame format for capture. Needed for allowing camera launch.
/// </summary>
Set the frame format for capture. Needed for allowing camera launch.
Set the frame format for capture . Needed for allowing camera launch .
private async Task SetFrameFormat()
        {
            _frameSource = _mediaCapture.FrameSources[_selectedSourceInfo.Id]; 
            var format = _frameSource.SupportedFormats.FirstOrDefault();
            await _frameSource.SetFormatAsync(format);
        }
private async Task SetFrameFormat ( ) { _frameSource = _mediaCapture . FrameSources [ _selectedSourceInfo . Id ] ; var format = _frameSource . SupportedFormats . FirstOrDefault ( ) ; await _frameSource . SetFormatAsync ( format ) ; }
Set the frame format for capture.
Set the frame format for capture .
// get the source found in FindSource method