Skip to content

Disable restart camera after change mode (photo/video) #805

Closed
@Namazed

Description

@Namazed

Problem to be addressed

In my app I need fast switch between mode photo and video, because is more comfortable for users, who use camera in my app.

I looked at source code where we switch mode and saw that on Engine.Camera1 we can stop restart camera, because it's not need. On Engine.Camera2 do it it's not simple, because you don't create video and photo recorder for one request, but we can use in one moment photo and video request.

Describe the solution you'd like

I will create PR with solution for Engine.Camera1, because I think I understood how this work.
About Camera2, I tried use both photo and video request in Engine.Camera2 and system threw exception, that telling that request bad configured. Maybe you know how we can do it on Engine.Camera2.

Additional context

This will use flag, like requestPermissions.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions