Android-GoldenEye icon indicating copy to clipboard operation
Android-GoldenEye copied to clipboard

Regarding video recording preview.

Open shwetachauhan-simform opened this issue 4 years ago • 3 comments

Can I remove left and right space while we record video? While record video I want preview in autofit. Is it possible?

shwetachauhan-simform avatar May 02 '20 03:05 shwetachauhan-simform

Hi @shwetachauhan-simform ,

You should be able to set AUTO_FIT or AUTO_FILL scaling depending on your needs.

https://github.com/infinum/Android-GoldenEye/blob/28d0416602432227d099f6bbf9e2d544401d59ca/goldeneye/src/main/java/co/infinum/goldeneye/config/SizeConfig.kt#L48

previewScale is accessed via config as all other properties.

domagojkorman avatar May 05 '20 09:05 domagojkorman

Yes, that’s working after video recording complete but while we are recording video screen width become small and there is black space in left and right?

Is it possible while recording is ongoing? Your library works perfect as per my app requirement only issue is this.

ShwetaChauhan18 avatar May 05 '20 10:05 ShwetaChauhan18

ok, got it. Thanks @domagojkorman

But if I set

config.previewScale = PreviewScale.AUTO_FILL

on click of start record video preview became zoom

shwetachauhan-simform avatar May 06 '20 04:05 shwetachauhan-simform