saki4510t / AudioVideoRecordingSample

Simultaneous audio and video recording sample using MediaCodec/MediaMuxer
Apache License 2.0
950 stars 291 forks source link

Modified code to switch camera, but when using back camera saved video is flipped #25

Open baberone opened 6 years ago

baberone commented 6 years ago

Hi Saki

I've been playing around with your project and I must say it's impressive. Since I'm using Xamarin I've 'translated' your code to C#, but all is working fine now. Muxing video and audio is working nicely on my test device.

So I've added some code to be able to switch the camera (front/back) and it's working. I stop the preview in the CameraHandler and restart it afterwards.

When playing a movie recorded by the back camera, the image is flipped. This is not the case with a front camera recording (preview = recorded orientation)

Any ideas are welcome !

Thanks Benoit