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

[Bug] CameraView does not take photos for iOS #1059

@janispa

Description

@janispa

Description

CameraView does not take photo under iOS. Android is not affected.

Steps to Reproduce

  1. Put CameraView on a page
  2. Trigger ShutterCommand

Expected Behavior

  1. MediaCaptured event is triggered

Actual Behavior

  1. MediaCaptured event is not triggered

Basic Information

public async Task TakePhoto()
{
if (isBusy || device == null || photoOutput != null)
return;
IsBusy = true;
// iOS >= 10
if (photoOutput != null)
{
var photoOutputConnection = photoOutput.ConnectionFromMediaType(AVMediaType.Video);

The check photoOutput != null prevents the further code from processing the photo.

  • Version with issue: 1.0.3 and greater
  • Last known good version: 1.02
  • IDE: Visual Studio 2019
  • Platform Target Frameworks:
    • iOS: 14.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. Breaky break.s/unverifiedThis issue needs verification/reproduction by a team member. PRs cannot be accepted/merged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions