Hololens/Lib/Cameras.cs
//#############################################################################################
/// <summary>
/// Create and initialize a MediaCapture object
/// </summary>
Create and initialize a MediaCapture object
Create and initialize a MediaCapture object
private async Task InitMediaCapture()
        {
            _mediaCapture = new MediaCapture(); 
            try
            {
                MediaCaptureInitializationSettings settings = SettingsForMediaCapture();
                await _mediaCapture.InitializeAsync(settings);
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine("MediaCapture initialization failed: " + ex.Message);
            }
        }
private async Task InitMediaCapture ( ) { _mediaCapture = new MediaCapture ( ) ; try { MediaCaptureInitializationSettings settings = SettingsForMediaCapture ( ) ; await _mediaCapture . InitializeAsync ( settings ) ; } catch ( Exception ex ) { System . Diagnostics . Debug . WriteLine ( " " + ex . Message ) ; } }
Create and initialize a MediaCapture object
Create and initialize a MediaCapture object
// creation // intialisation