Skip to content

cameraController operations block the UI thread for up to ~500ms at a time on iOS #25959

@cvolzke4

Description

@cvolzke4

CameraController operations return async/await Futures, but many of them run synchronously.

For example, CameraController.initalize() calls AVCaptureSession.addInput(), addOutput(), startRunning() etc all of which freeze the UI thread momentarily.

As an alternative, it's recommended that AVCaptureSession operations be called on a dedicated serial DispatchQueue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)p: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions