Skip to content

Commit

Permalink
fix(core): camera: fix mirroring in landscape with front facing camera
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Jan 21, 2025
1 parent 7920b7b commit 7b857ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class CameraInfoProvider(
val isFrontFacing: Boolean
get() = context.getFacingDirection(cameraId) == CameraCharacteristics.LENS_FACING_FRONT

override val isMirror = false
override val isMirror: Boolean
get() = isFrontFacing

@IntRange(from = 0, to = 359)
override fun getRelativeRotationDegrees(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,6 @@ open class CameraSingleStreamer(
return CameraStreamerConfigurationInfo(endpointInfo)
}

override fun isMirroringRequired(): Boolean {
return cameraSource.infoProvider.isFrontFacing
}

/**
* Sets a preview surface.
*/
Expand Down

0 comments on commit 7b857ce

Please sign in to comment.