Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.

[Bug] CapturePhotoAsync shows video capture on UWP #1504

@cbs-cbt

Description

@cbs-cbt

Description

CapturePhotoAsync shows video capture on UWP

Steps to Reproduce

  1. Call await MediaPicker.CapturePhotoAsync(); in your code, this show up video capture instead of photo capture on UWP

Expected Behavior

Should show photo capture screen

Actual Behavior

Should show video capture screen

Basic Information

  • Version with issue: 1.6.0-pre2
  • Last known good version:none
  • IDE:
  • Platform Target Frameworks:
    • UWP: Windows 10, version 1903 (10.0; Build 18362)

Correction

Please correct the line 44 of the file Essentials/Xamarin.Essentials/MediaPicker/MediaPicker.uwp.cs:
https://github.com/xamarin/Essentials/blob/afb692d710a4240f109d032dd4ebc8c9b329802d/Xamarin.Essentials/MediaPicker/MediaPicker.uwp.cs#L44
This should be:
=> CaptureAsync(options, true); and not => CaptureAsync(options, false);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions