Skip to content

[p:camera] Make it possible to switch camera while recording a video #82467

@sarbogast

Description

@sarbogast

Use case

Right now, the cameraDescription is set when you create a new CameraController instance, and you can't change it after that. Sometimes, when I record a video, I want to be able to switch from the front-facing to the back-facing camera mid-recording to show something. Certain packages like camerawesome allow that but only on iOS.

Proposal

Add a setCamera(CameraDescription) method to CameraController, that can be called while recording, or at the very least when the controller is paused so that we can pause, switch and resume in the same file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions