I have a SurfaceView in android app that displays a video from a camera connected to a phone via bluetooth.
I would like to be able to horizontally mirror/flip the video after decoding it. By mirroring I mean for instance, If there's a chair showing on the left i would like to show it on the right of the screen, this is mirroring.
I know for a fact SurfaceView inherits View so I tried setScaleX(-1) with no luck
Any help will be much appreciated
Thanks in advance
What I have tried:
in iOS I have achieved this by the following sample code:
AVSampleBufferDisplayLayer.transform = CATransform3DMakeScale(-1.0, 1.0, 1.0);
I was hoping that android has something similar but SurfaceView doesn't have transform property. I have tried: