Skip to content

VideoView.setMirror(false) behaves inconsistently between front and back camera on Android #853

@yuexunshi

Description

@yuexunshi

Description

When using LiveKit Android SDK, I noticed inconsistent mirroring behavior between the front and back camera.

Expected behavior

Calling:

videoView.setMirror(false)

should disable mirroring for both front and back cameras.

Actual behavior

Front camera: still mirrored

Back camera: not mirrored

If I call:

videoView.setMirror(true)

Front camera: looks correct

Back camera: becomes mirrored

So the mirror flag seems to be applied on top of an already mirrored front camera frame.

Result

It is currently impossible to make both front and back cameras non-mirrored using setMirror() alone.

Environment

Platform: Android

LiveKit SDK: last

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions