404pio
404pio

Reputation: 1032

How to turn on ZSL (zero shutter lag) in Android Camera 1?

Is there way of enabling ZSL on old Camera API? Nothing in official documentation, maybe in Parameters, maybe it is manufacturer dependent value?

Upvotes: 1

Views: 1510

Answers (1)

Alex Cohn
Alex Cohn

Reputation: 57163

Yes, it's a device-specific setting. If it is supported, you can use the string-based set() API to control it. You can find the device-specific parameter name and often the expected parameter values from flatten() result.

It is important to remember that setParameters() call is slow and may produce a RuntimeException for any one of hundreds of plausible or unexpected reasons, so you should always wrap it in try…catch.

Upvotes: 1

Related Questions